Commit debb638a authored by Fawzi Mohamed's avatar Fawzi Mohamed

mdnssd: handle if indexes larger than one byte

fixes upstream bug

Change-Id: I7e1bc29ca293f25ffe837f5788bf7bc94e87e1c5
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 5d782df3
......@@ -106,7 +106,7 @@ struct ifi_info *get_ifi_info_linuxv6(int family, int doaliases)
goto gotError;
}
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[4],addr[5],addr[6],addr[7],
&index, &plen, &scope, &flags, ifname) != EOF) {
......
Markdown is supported
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