Commit f4d0a903 authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Added a small check

parent 7d924799
......@@ -972,7 +972,7 @@ int fd_sctp_get_local_ep(int sock, struct fd_list * list)
memset(&status, 0, sizeof(status));
/* Attempt to use SCTP_STATUS message to retrieve the primary address */
ret = getsockopt(sock, IPPROTO_SCTP, SCTP_STATUS, &status, &sz);
CHECK_SYS_DO( ret = getsockopt(sock, IPPROTO_SCTP, SCTP_STATUS, &status, &sz), /* continue */);
if (sz != sizeof(status))
ret = -1;
sz = sizeof(sSS);
......
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