diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2018-10-20 18:11:46 +0000 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2018-10-20 18:11:46 +0000 |
| commit | a2a90d6ee51a22feb72dc6c0adbb54b708a453b8 (patch) | |
| tree | 8aea139247bc9ae5a2d464ed064445c0220e7b7f | |
| parent | d158fa4ade3eb6f4b7ac2945f00a733438707adb (diff) | |
Notes
| -rw-r--r-- | sbin/pfctl/parse.y | 4 |
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); } ; |
