svn commit: r234796 - stable/9/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Apr 29 16:22:56 UTC 2012


Author: tuexen
Date: Sun Apr 29 16:22:55 2012
New Revision: 234796
URL: http://svn.freebsd.org/changeset/base/234796

Log:
  MFC r234460:
  
  Fix reported errno.

Modified:
  stable/9/sys/netinet/sctputil.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctputil.c
==============================================================================
--- stable/9/sys/netinet/sctputil.c	Sun Apr 29 16:21:47 2012	(r234795)
+++ stable/9/sys/netinet/sctputil.c	Sun Apr 29 16:22:55 2012	(r234796)
@@ -2553,8 +2553,8 @@ sctp_add_pad_tombuf(struct mbuf *m, int 
 		tmp = sctp_get_mbuf_for_msg(padlen, 0, M_DONTWAIT, 1, MT_DATA);
 		if (tmp == NULL) {
 			/* Out of space GAK! we are in big trouble. */
-			SCTP_LTRACE_ERR_RET_PKT(m, NULL, NULL, NULL, SCTP_FROM_SCTPUTIL, EINVAL);
-			return (ENOSPC);
+			SCTP_LTRACE_ERR_RET_PKT(m, NULL, NULL, NULL, SCTP_FROM_SCTPUTIL, ENOBUFS);
+			return (ENOBUFS);
 		}
 		/* setup and insert in middle */
 		SCTP_BUF_LEN(tmp) = padlen;


More information about the svn-src-all mailing list