Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2018 14:54:56 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336199 - head/sys/netinet/libalias
Message-ID:  <201807111454.w6BEsu9R057271@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Jul 11 14:54:56 2018
New Revision: 336199
URL: https://svnweb.freebsd.org/changeset/base/336199

Log:
  Remove a duplicate check.
  
  PR:		229663
  Submitted by:	David Binderman <dcb314@hotmail.com>
  MFC after:	3 days

Modified:
  head/sys/netinet/libalias/alias_irc.c

Modified: head/sys/netinet/libalias/alias_irc.c
==============================================================================
--- head/sys/netinet/libalias/alias_irc.c	Wed Jul 11 14:50:06 2018	(r336198)
+++ head/sys/netinet/libalias/alias_irc.c	Wed Jul 11 14:54:56 2018	(r336199)
@@ -98,8 +98,7 @@ static int
 fingerprint(struct libalias *la, struct alias_data *ah)
 {
 
-	if (ah->dport == NULL || ah->dport == NULL || ah->lnk == NULL ||
-	    ah->maxpktsize == 0)
+	if (ah->dport == NULL || ah->lnk == NULL || ah->maxpktsize == 0)
 		return (-1);
 	if (ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_1
 	    || ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_2)



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