mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Two more static analisys bugs found by cisco's tool on a subsequent
run.
This commit is contained in:
parent
c8222a9830
commit
ea1fbec59a
2 changed files with 5 additions and 3 deletions
|
|
@ -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 @@ select_a_new_ep:
|
|||
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 a new issue