diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-26 14:08:14 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-26 14:08:14 +0000 |
commit | d7ec6be5b684d752ac5e1385e4f770ad20869888 (patch) | |
tree | 478eae4cf0209c8f9343839700a04f19f0d86722 /sys/netgraph | |
parent | ea494f6542a8b09aef451648e1d219b4cfe14769 (diff) | |
download | FreeBSD-src-d7ec6be5b684d752ac5e1385e4f770ad20869888.zip FreeBSD-src-d7ec6be5b684d752ac5e1385e4f770ad20869888.tar.gz |
Return ENOMEM if malloc() fails.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/netflow/netflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c index a0e8535..f230616 100644 --- a/sys/netgraph/netflow/netflow.c +++ b/sys/netgraph/netflow/netflow.c @@ -574,7 +574,7 @@ ng_netflow_fib_init(priv_p priv, int fib) if ((fe = malloc(sizeof(struct fib_export), M_NETGRAPH, M_NOWAIT | M_ZERO)) == NULL) - return (1); + return (ENOMEM); mtx_init(&fe->export_mtx, "export dgram lock", NULL, MTX_DEF); mtx_init(&fe->export9_mtx, "export9 dgram lock", NULL, MTX_DEF); |