Commit 0ae38efc authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Iterate on ancillary messages.

Sometimes the desired ancillary message does not come head-first.
parent 15b7e534
...@@ -201,6 +201,7 @@ receive_rs() ...@@ -201,6 +201,7 @@ receive_rs()
hoplimit = *(unsigned char*)CMSG_DATA(cmsg); hoplimit = *(unsigned char*)CMSG_DATA(cmsg);
break; break;
} }
cmsg = CMSG_NXTHDR(&msg, cmsg);
} }
if(hoplimit != 255) if(hoplimit != 255)
......
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