Move assertion below initializer.
Submitted by: Noritoshi Demizu Pointy hat to: glebius
This commit is contained in:
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user