Remove dead code.
Reported by: Coverity CID: 748663 MFC after: 1 week
This commit is contained in:
parent
448e859674
commit
f0dc2113ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277034
@ -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 New Issue
Block a user