diff options
author | glebius <glebius@FreeBSD.org> | 2011-04-18 20:07:08 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-04-18 20:07:08 +0000 |
commit | 53a0fd8ac354d0c7779815e2ef3aeeaec9ceee0f (patch) | |
tree | f4352a5958a7b8f9b17e2c8cf3b91ba8f8a3cda9 /sys/netgraph | |
parent | 3ba2f4e3f25cf378d2dc011328cd7950c6af5b2f (diff) | |
download | FreeBSD-src-53a0fd8ac354d0c7779815e2ef3aeeaec9ceee0f.zip FreeBSD-src-53a0fd8ac354d0c7779815e2ef3aeeaec9ceee0f.tar.gz |
LibAliasInit() should allocate memory with M_WAITOK flag. Modify it
and its callers.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_nat.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netgraph/ng_nat.c b/sys/netgraph/ng_nat.c index 6481699..84da500 100644 --- a/sys/netgraph/ng_nat.c +++ b/sys/netgraph/ng_nat.c @@ -276,10 +276,6 @@ ng_nat_constructor(node_p node) /* Init aliasing engine. */ priv->lib = LibAliasInit(NULL); - if (priv->lib == NULL) { - free(priv, M_NETGRAPH); - return (ENOMEM); - } /* Set same ports on. */ (void )LibAliasSetMode(priv->lib, PKT_ALIAS_SAME_PORTS, |