mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 14:54:21 -04:00
ipfw: Correct error message
The failed allocation in the error pertains to IP_FW_XADD, not
IP_FW_ADD.
Reviewed by: ae
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53359
(cherry picked from commit 498e56142660c8dd864c878e820252358c9a15cf)
(cherry picked from commit c22437c8b5)
This commit is contained in:
parent
f7c13f3363
commit
41d43ad19d
1 changed files with 1 additions and 1 deletions
|
|
@ -5575,7 +5575,7 @@ ipfw_add(char *av[])
|
|||
sz = default_off + sizeof(ipfw_obj_ctlv) + tlen + rlen;
|
||||
|
||||
if ((tbuf = calloc(1, sz)) == NULL)
|
||||
err(EX_UNAVAILABLE, "malloc() failed for IP_FW_ADD");
|
||||
err(EX_UNAVAILABLE, "malloc() failed for IP_FW_XADD");
|
||||
op3 = (ip_fw3_opheader *)tbuf;
|
||||
/* Tables first */
|
||||
ctlv = (ipfw_obj_ctlv *)(op3 + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue