- Two more static analisys bugs found by cisco's tool on a subsequent
run.
This commit is contained in:
parent
c8222a9830
commit
ea1fbec59a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170943
@ -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);
|
||||
}
|
||||
|
||||
|
@ -1706,7 +1706,8 @@ sctp_iterator_timer(struct sctp_iterator *it)
|
||||
if (iteration_count > SCTP_ITERATOR_MAX_AT_ONCE) {
|
||||
start_timer_return:
|
||||
/* set a timer to continue this later */
|
||||
SCTP_TCB_UNLOCK(it->stcb);
|
||||
if (it->stcb)
|
||||
SCTP_TCB_UNLOCK(it->stcb);
|
||||
sctp_timer_start(SCTP_TIMER_TYPE_ITERATOR,
|
||||
(struct sctp_inpcb *)it, NULL, NULL);
|
||||
SCTP_ITERATOR_UNLOCK();
|
||||
|
Loading…
Reference in New Issue
Block a user