svn commit: r234460 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Apr 19 12:47:19 UTC 2012


Author: tuexen
Date: Thu Apr 19 12:47:18 2012
New Revision: 234460
URL: http://svn.freebsd.org/changeset/base/234460

Log:
  Fix reported errno.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Thu Apr 19 12:43:19 2012	(r234459)
+++ head/sys/netinet/sctputil.c	Thu Apr 19 12:47:18 2012	(r234460)
@@ -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-head mailing list