mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove extra M_ZERO from NG_MKRESPONSE() argument.
NG_MKRESPONSE() sets M_ZERO by itself. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
This commit is contained in:
parent
a4671335c5
commit
8805f3d7be
1 changed files with 1 additions and 1 deletions
|
|
@ -2665,7 +2665,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook)
|
|||
IDHASH_RLOCK();
|
||||
/* Get response struct. */
|
||||
NG_MKRESPONSE(resp, msg, sizeof(*nl) +
|
||||
(V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT | M_ZERO);
|
||||
(V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT);
|
||||
if (resp == NULL) {
|
||||
IDHASH_RUNLOCK();
|
||||
error = ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue