From 841f4ee642d7651bda2ed7355feaab8d2b170a22 Mon Sep 17 00:00:00 2001 From: tuexen Date: Wed, 10 Dec 2014 14:50:57 +0000 Subject: Fix a typo reported by Lennart Grahl. MFC after: 3 days --- lib/libc/net/sctp_sys_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 91527c3..ea66df9 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -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; -- cgit v1.1