svn commit: r234810 - stable/8/sys/netinet

[ Available lists | Index of svn-src-all | Month of Apr 2012 | Week of 29 Apr 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Michael Tuexen <tuexen@FreeBSD.org>
Date
29 Apr 2012 18:44:25
Subject
svn commit: r234810 - stable/8/sys/netinet
Message-ID
201204291844.q3TIiPHn027301@svn.freebsd.org


[ Hide this part ]
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;


Elapsed time: 0.091 seconds