summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 77beb1f..ac2da30 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -10436,9 +10436,10 @@ sctp_copy_resume(struct sctp_stream_queue_pending *sp,
(M_PKTHDR | (user_marks_eor ? M_EOR : 0)));
if (m == NULL)
*error = ENOMEM;
- else
+ else {
*sndout = m_length(m, NULL);
- *new_tail = m_last(m);
+ *new_tail = m_last(m);
+ }
return (m);
}
OpenPOWER on IntegriCloud