aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2018-05-14 15:16:51 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2018-05-14 15:16:51 +0000
commit482d420926c236009d2ed4df464585cba3075ae5 (patch)
treed65d4ea36e99aa4d2a081b72a592bbd5ebf4a4c0 /sys/netinet/sctp_output.c
parent589c42c2c832beeb261ef96e2d24041e071e6b68 (diff)
downloadsrc-482d420926c236009d2ed4df464585cba3075ae5.tar.gz
src-482d420926c236009d2ed4df464585cba3075ae5.zip
sctp_get_mbuf_for_msg() should honor the allinone parameter.
When it is not required that the buffer is not a chain, return a chain. This is based on a patch provided by Irene Ruengeler.
Notes
Notes: svn path=/head/; revision=333604
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index e80d9ff5ff36..cba63714ab63 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -7450,7 +7450,7 @@ dont_do_it:
/* Not enough room for a chunk header, get some */
struct mbuf *m;
- m = sctp_get_mbuf_for_msg(1, 0, M_NOWAIT, 0, MT_DATA);
+ m = sctp_get_mbuf_for_msg(1, 0, M_NOWAIT, 1, MT_DATA);
if (m == NULL) {
/*
* we're in trouble here. _PREPEND below will free