mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
NG_MKRESPONSE() macro includes sizeof struct ng_mesg when doing allocation.
PR: kern/79806 Submitted by: Wojciech A. Koszek
This commit is contained in:
parent
2d4420789d
commit
20064a62a9
1 changed files with 1 additions and 2 deletions
|
|
@ -261,8 +261,7 @@ cisco_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
|||
char *arg;
|
||||
int pos;
|
||||
|
||||
NG_MKRESPONSE(resp, msg, sizeof(struct ng_mesg)
|
||||
+ NG_TEXTRESPONSE, M_NOWAIT);
|
||||
NG_MKRESPONSE(resp, msg, NG_TEXTRESPONSE, M_NOWAIT);
|
||||
if (resp == NULL) {
|
||||
error = ENOMEM;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue