Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 12:13:52 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283712 - stable/10/sys/netinet
Message-ID:  <201505291213.t4TCDqqw022053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505291213.t4TCDqqw022053>