Fix a typo reported by Lennart Grahl.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2014-12-10 14:50:57 +00:00
parent d0ff09c9c0
commit 0d958bd47a

View File

@ -886,7 +886,7 @@ sctp_recvv(int sd,
struct sctp_rcvinfo *rcvinfo;
struct sctp_nxtinfo *nxtinfo;
if (((info != NULL) && (infolen == NULL)) |
if (((info != NULL) && (infolen == NULL)) ||
((info == NULL) && (infolen != NULL) && (*infolen != 0)) ||
((info != NULL) && (infotype == NULL))) {
errno = EINVAL;