diff options
author | mav <mav@FreeBSD.org> | 2008-03-09 11:17:00 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-03-09 11:17:00 +0000 |
commit | be092ffb41c0086c5b034b8983b65ecc4e0706f7 (patch) | |
tree | 6c33f75d03f26862073527c807d91b5cca43c7dc /sys/netgraph | |
parent | d006593fca9fa75d6c9fc7c029068a8fa455e350 (diff) | |
download | FreeBSD-src-be092ffb41c0086c5b034b8983b65ecc4e0706f7.zip FreeBSD-src-be092ffb41c0086c5b034b8983b65ecc4e0706f7.tar.gz |
Addition to the previous commit. Release inproc in case of memory error.
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_l2tp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index 5368b82..64fe0e3 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -950,6 +950,7 @@ ng_l2tp_rcvdata_lower(hook_p h, item_p item) /* Prepend session ID to packet. */ M_PREPEND(m, 2, M_DONTWAIT); if (m == NULL) { + seq->inproc = 0; priv->stats.memoryFailures++; NG_FREE_ITEM(item); ERROUT(ENOBUFS); |