diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-09 12:39:43 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-09 12:39:43 +0000 |
commit | 02d174340245e6e2912a57781bd3522cea6dd3e4 (patch) | |
tree | f08d8d4b48ddea6c1b85b94958fe47038bfc04a4 /sbin/pfctl | |
parent | 179a9b9fa1673d6b98fbfc4c467487bb14441fa3 (diff) |
free() 'interface' in {nat,binat,rdr}rule
dhartmei@ ok
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index ae0492cda36..bde262e3d72 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.51 2002/01/09 11:30:53 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.52 2002/01/09 12:39:42 mpech Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -821,6 +821,7 @@ natrule : no NAT interface proto FROM ipspec TO ipspec redirection memcpy(nat.ifname, $3->ifname, sizeof(nat.ifname)); nat.ifnot = $3->not; + free($3); } if ($4 != NULL) { nat.proto = $4->proto; @@ -888,6 +889,7 @@ binatrule : no BINAT interface proto FROM address TO ipspec redirection if ($3 != NULL) { memcpy(binat.ifname, $3->ifname, sizeof(binat.ifname)); + free($3); } if ($4 != NULL) { binat.proto = $4->proto; @@ -954,6 +956,7 @@ rdrrule : no RDR interface proto FROM ipspec TO ipspec dport redirection memcpy(rdr.ifname, $3->ifname, sizeof(rdr.ifname)); rdr.ifnot = $3->not; + free($3); } if ($4 != NULL) { rdr.proto = $4->proto; |