summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-12-10 14:50:57 +0000
committertuexen <tuexen@FreeBSD.org>2014-12-10 14:50:57 +0000
commit841f4ee642d7651bda2ed7355feaab8d2b170a22 (patch)
treec108a47106f17e0b7fcf021ffe3d605f8e6d4669 /lib/libc
parent5a2f0c0e007e0c887b40dd74adf4feb0b5703c29 (diff)
downloadFreeBSD-src-841f4ee642d7651bda2ed7355feaab8d2b170a22.zip
FreeBSD-src-841f4ee642d7651bda2ed7355feaab8d2b170a22.tar.gz
Fix a typo reported by Lennart Grahl.
MFC after: 3 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/sctp_sys_calls.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud