mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Addition to the previous commit. Release inproc in case of memory error.
This commit is contained in:
parent
c7b65254c4
commit
395adfbe34
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue