summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2010-01-12 03:33:28 +0000
committermcbride <mcbride@openbsd.org>2010-01-12 03:33:28 +0000
commit73d1418b4ebb773be8becd31c105a7bbcaac4fe2 (patch)
tree9314d02e30c92f2a0f9966c57d1f6ea15885beaa
parentFirst pass at removing the 'pf_pool' mechanism for translation and routing (diff)
downloadwireguard-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.y3
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)