summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-04-25 17:36:34 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-04-25 17:36:34 +0000
commite078e59bedd770f9a3abc3b710fc764b68254d73 (patch)
tree7f6e49a6ccfa00251141ecd92c7d141d659a57f3
parent06ee258463323007a79480ac706cbbf41835dc42 (diff)
Properly copy the second part of nat proxy port range, when specified.
ok henning@
-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 bd94783e0e1..76bf7b7c24e 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.367 2003/04/15 11:29:24 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.368 2003/04/25 17:36:33 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2433,6 +2433,7 @@ natrule : nataction interface af proto fromto redirpool pooltype
ntohs($6->rport.b);
break;
case PF_NAT:
+ r.rpool.proxy_port[1] = ntohs($6->rport.b);
if (!r.rpool.proxy_port[0] &&
!r.rpool.proxy_port[1]) {
r.rpool.proxy_port[0] =