svn commit: r332184 - stable/11/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Apr 7 17:36:54 UTC 2018
Author: tuexen
Date: Sat Apr 7 17:36:53 2018
New Revision: 332184
URL: https://svnweb.freebsd.org/changeset/base/332184
Log:
MFC r323374:
Silence a Coverity warning from scanning the usrsctp library.
Modified:
stable/11/sys/netinet/sctp_pcb.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/11/sys/netinet/sctp_pcb.c Sat Apr 7 17:35:04 2018 (r332183)
+++ stable/11/sys/netinet/sctp_pcb.c Sat Apr 7 17:36:53 2018 (r332184)
@@ -2919,9 +2919,9 @@ sctp_inpcb_bind(struct socket *so, struct sockaddr *ad
*/
/* got to be root to get at low ports */
if (ntohs(lport) < IPPORT_RESERVED) {
- if (p && (error =
+ if ((p != NULL) && ((error =
priv_check(p, PRIV_NETINET_RESERVEDPORT)
- )) {
+ ) != 0)) {
SCTP_INP_DECR_REF(inp);
SCTP_INP_WUNLOCK(inp);
SCTP_INP_INFO_WUNLOCK();
More information about the svn-src-stable
mailing list