Remove dead code.

Reported by:	Coverity
CID:		748663
MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-01-11 22:49:20 +00:00
parent 448e859674
commit f0dc2113ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277034

View File

@ -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 */