svn commit: r362875 - stable/12/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Wed Jul 1 21:57:41 UTC 2020


Author: tuexen
Date: Wed Jul  1 21:57:40 2020
New Revision: 362875
URL: https://svnweb.freebsd.org/changeset/base/362875

Log:
  MFC r356377:
  Return -1 consistently if an error occurs.

Modified:
  stable/12/sys/netinet/sctp_pcb.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/12/sys/netinet/sctp_pcb.c	Wed Jul  1 21:56:20 2020	(r362874)
+++ stable/12/sys/netinet/sctp_pcb.c	Wed Jul  1 21:57:40 2020	(r362875)
@@ -7131,7 +7131,7 @@ sctp_initiate_iterator(inp_func inpf,
 	    SCTP_M_ITER);
 	if (it == NULL) {
 		SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_PCB, ENOMEM);
-		return (ENOMEM);
+		return (-1);
 	}
 	memset(it, 0, sizeof(*it));
 	it->function_assoc = af;


More information about the svn-src-stable-12 mailing list