Author: tuexen
Date: Fri May 29 12:13:52 2015
New Revision: 283712
URL: https://svnweb.freebsd.org/changeset/base/283712

Log:
  MFC r277034:
  
  Remove dead code.
  
  Reported by:  Coverity
  CID:          748663

Modified:
  stable/10/sys/netinet/sctp_input.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctp_input.c
==============================================================================
--- stable/10/sys/netinet/sctp_input.c  Fri May 29 12:11:14 2015        
(r283711)
+++ stable/10/sys/netinet/sctp_input.c  Fri May 29 12:13:52 2015        
(r283712)
@@ -2595,7 +2595,7 @@ sctp_handle_cookie_echo(struct mbuf *m, 
                /* 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, 
                        }
                }
        }
-       if (to == NULL) {
-               return (NULL);
-       }
        cookie_len -= SCTP_SIGNATURE_SIZE;
        if (*stcb == NULL) {
                /* this is the "normal" case... get a new TCB */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to