Commit debb638a authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

mdnssd: handle if indexes larger than one byte

fixes upstream bug

Change-Id: I7e1bc29ca293f25ffe837f5788bf7bc94e87e1c5
Reviewed-by: default avatarChristian Kandeler <>
parent 5d782df3
...@@ -106,7 +106,7 @@ struct ifi_info *get_ifi_info_linuxv6(int family, int doaliases) ...@@ -106,7 +106,7 @@ struct ifi_info *get_ifi_info_linuxv6(int family, int doaliases)
goto gotError; goto gotError;
} }
while (fscanf(fp, while (fscanf(fp,
"%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %8s\n", "%4s%4s%4s%4s%4s%4s%4s%4s %x %x %x %x %s\n",
addr[0],addr[1],addr[2],addr[3], addr[0],addr[1],addr[2],addr[3],
addr[4],addr[5],addr[6],addr[7], addr[4],addr[5],addr[6],addr[7],
&index, &plen, &scope, &flags, ifname) != EOF) { &index, &plen, &scope, &flags, ifname) != EOF) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment