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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145015
@ -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 New Issue
Block a user