Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2020 02:55:08 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360756 - stable/11/sys/netinet
Message-ID:  <202005070255.0472t8on013299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Thu May  7 02:55:08 2020
New Revision: 360756
URL: https://svnweb.freebsd.org/changeset/base/360756

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

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	Thu May  7 02:53:02 2020	(r360755)
+++ stable/11/sys/netinet/sctp_pcb.c	Thu May  7 02:55:08 2020	(r360756)
@@ -7134,7 +7134,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005070255.0472t8on013299>