svn commit: r234810 - stable/8/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Apr 29 18:44:25 UTC 2012
Author: tuexen
Date: Sun Apr 29 18:44:24 2012
New Revision: 234810
URL: http://svn.freebsd.org/changeset/base/234810
Log:
MFC r234460:
Fix reported errno.
Modified:
stable/8/sys/netinet/sctputil.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/netinet/sctputil.c
==============================================================================
--- stable/8/sys/netinet/sctputil.c Sun Apr 29 18:42:49 2012 (r234809)
+++ stable/8/sys/netinet/sctputil.c Sun Apr 29 18:44:24 2012 (r234810)
@@ -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-stable
mailing list