aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-10-20 18:11:46 +0000
committerKristof Provost <kp@FreeBSD.org>2018-10-20 18:11:46 +0000
commita2a90d6ee51a22feb72dc6c0adbb54b708a453b8 (patch)
tree8aea139247bc9ae5a2d464ed064445c0220e7b7f
parentd158fa4ade3eb6f4b7ac2945f00a733438707adb (diff)
Notes
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 3b1f0bbea3dda..c542bf72f7030 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);
}
;