diff options
author | rrs <rrs@FreeBSD.org> | 2007-06-18 22:36:52 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-06-18 22:36:52 +0000 |
commit | 660ca20248e30a17125dabfcd5a59eb2918f8209 (patch) | |
tree | 66e0abe6d13d9d52b5d234fedb6ebd059794b7c7 /sys/netinet/sctp_output.c | |
parent | 8a0763227685af848068eb5461da992d7cac086b (diff) | |
download | FreeBSD-src-660ca20248e30a17125dabfcd5a59eb2918f8209.zip FreeBSD-src-660ca20248e30a17125dabfcd5a59eb2918f8209.tar.gz |
- Two more static analisys bugs found by cisco's tool on a subsequent
run.
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r-- | sys/netinet/sctp_output.c | 5 |
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); } |