Remove duplicate check.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
This commit is contained in:
mav 2012-08-03 12:55:31 +00:00
parent f443afa848
commit 10741a6f2e

View File

@ -562,7 +562,7 @@ ng_pptpgre_xmit(hpriv_p hpriv, item_p item)
}
/* 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);
}