svn commit: r243954 - stable/8/sys/netgraph

Alexander Motin mav at FreeBSD.org
Thu Dec 6 18:41:53 UTC 2012


Author: mav
Date: Thu Dec  6 18:41:53 2012
New Revision: 243954
URL: http://svnweb.freebsd.org/changeset/base/243954

Log:
  MFC r239007:
  Remove duplicate check.

Modified:
  stable/8/sys/netgraph/ng_pptpgre.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netgraph/   (props changed)

Modified: stable/8/sys/netgraph/ng_pptpgre.c
==============================================================================
--- stable/8/sys/netgraph/ng_pptpgre.c	Thu Dec  6 18:35:00 2012	(r243953)
+++ stable/8/sys/netgraph/ng_pptpgre.c	Thu Dec  6 18:41:53 2012	(r243954)
@@ -564,7 +564,7 @@ ng_pptpgre_xmit(hpriv_p hpriv, item_p it
 		}
 
 		/* Sanity check frame length */
-		if (m != NULL && m->m_pkthdr.len > PPTP_MAX_PAYLOAD) {
+		if (m->m_pkthdr.len > PPTP_MAX_PAYLOAD) {
 			priv->stats.xmitTooBig++;
 			ERROUT(EMSGSIZE);
 		}


More information about the svn-src-all mailing list