From 395adfbe3423e18d37aab7657d5e8bd7a9da5bb6 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 9 Mar 2008 11:17:00 +0000 Subject: [PATCH] Addition to the previous commit. Release inproc in case of memory error. --- sys/netgraph/ng_l2tp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index 5368b820601..64fe0e33ded 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);