Addition to the previous commit. Release inproc in case of memory error.

This commit is contained in:
Alexander Motin 2008-03-09 11:17:00 +00:00
parent c7b65254c4
commit 395adfbe34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176971

View File

@ -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);