Move assertion below initializer.

Submitted by:	Noritoshi Demizu
Pointy hat to: 	glebius
This commit is contained in:
Gleb Smirnoff 2005-05-11 08:28:09 +00:00
parent 85e66aedb4
commit cc8c6970fd

@ -223,12 +223,12 @@ ng_nat_rcvdata(hook_p hook, item_p item )
NGI_M(item) = m;
KASSERT(m->m_pkthdr.len == ntohs(ip->ip_len),
("ng_nat: ip_len != m_pkthdr.len"));
c = mtod(m, char *);
ip = mtod(m, struct ip *);
KASSERT(m->m_pkthdr.len == ntohs(ip->ip_len),
("ng_nat: ip_len != m_pkthdr.len"));
if (hook == priv->in) {
rval = LibAliasIn(priv->lib, c, MCLBYTES);
if (rval != PKT_ALIAS_OK) {