mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Remove dead code.
Reported by: Coverity CID: 748663 MFC after: 1 week
This commit is contained in:
parent
448e859674
commit
f0dc2113ca
1 changed files with 1 additions and 4 deletions
|
|
@ -2595,7 +2595,7 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset,
|
|||
/* This should not happen */
|
||||
return (NULL);
|
||||
}
|
||||
if ((*stcb == NULL) && to) {
|
||||
if (*stcb == NULL) {
|
||||
/* Yep, lets check */
|
||||
*stcb = sctp_findassociation_ep_addr(inp_p, to, netp, dst, NULL);
|
||||
if (*stcb == NULL) {
|
||||
|
|
@ -2634,9 +2634,6 @@ sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (to == NULL) {
|
||||
return (NULL);
|
||||
}
|
||||
cookie_len -= SCTP_SIGNATURE_SIZE;
|
||||
if (*stcb == NULL) {
|
||||
/* this is the "normal" case... get a new TCB */
|
||||
|
|
|
|||
Loading…
Reference in a new issue