diff options
| author | 2010-01-12 03:33:28 +0000 | |
|---|---|---|
| committer | 2010-01-12 03:33:28 +0000 | |
| commit | 73d1418b4ebb773be8becd31c105a7bbcaac4fe2 (patch) | |
| tree | 9314d02e30c92f2a0f9966c57d1f6ea15885beaa | |
| parent | First pass at removing the 'pf_pool' mechanism for translation and routing (diff) | |
| download | wireguard-openbsd-73d1418b4ebb773be8becd31c105a7bbcaac4fe2.tar.xz wireguard-openbsd-73d1418b4ebb773be8becd31c105a7bbcaac4fe2.zip | |
Don't leak @if0 format routing host names, pointed out by claudio.
| -rw-r--r-- | sbin/pfctl/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 3a48d22683b..b8203bfce55 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.581 2010/01/12 03:20:51 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.582 2010/01/12 03:33:28 mcbride Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -3725,6 +3725,7 @@ route_host : STRING { yyerror("invalid host for route spec"); YYERROR; } + free($1); } else { $$ = calloc(1, sizeof(struct node_host)); if ($$ == NULL) |
