svn commit: r275682 - head/lib/libc/net

Michael Tuexen tuexen at FreeBSD.org
Wed Dec 10 14:50:58 UTC 2014


Author: tuexen
Date: Wed Dec 10 14:50:57 2014
New Revision: 275682
URL: https://svnweb.freebsd.org/changeset/base/275682

Log:
  Fix a typo reported by Lennart Grahl.
  
  MFC after: 3 days

Modified:
  head/lib/libc/net/sctp_sys_calls.c

Modified: head/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- head/lib/libc/net/sctp_sys_calls.c	Wed Dec 10 14:36:44 2014	(r275681)
+++ head/lib/libc/net/sctp_sys_calls.c	Wed Dec 10 14:50:57 2014	(r275682)
@@ -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;


More information about the svn-src-head mailing list