Date: Wed, 12 Sep 2018 12:52:42 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231323] pfctl parser error Message-ID: <bug-231323-227-Nl5bRAct8c@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-231323-227@https.bugs.freebsd.org/bugzilla/> References: <bug-231323-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231323 Kristof Provost <kp@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kp@freebsd.org --- Comment #1 from Kristof Provost <kp@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231323-227-Nl5bRAct8c>
