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
@ -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…
x
Reference in New Issue
Block a user