[Bug 231323] pfctl parser error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 12 12:52:44 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231323
Kristof Provost <kp at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kp at freebsd.org
--- Comment #1 from Kristof Provost <kp at freebsd.org> ---
Can you test this patch?
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 3b1f0bbea3d..c542bf72f70 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -4408,7 +4408,7 @@ route_host : STRING {
$$ = calloc(1, sizeof(struct node_host));
if ($$ == NULL)
err(1, "route_host: calloc");
- $$->ifname = $1;
+ $$->ifname = strdup($1);
set_ipmask($$, 128);
$$->next = NULL;
$$->tail = $$;
@@ -4418,7 +4418,7 @@ route_host : STRING {
$$ = $3;
for (n = $3; n != NULL; n = n->next)
- n->ifname = $2;
+ n->ifname = strdup($2);
}
;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list