summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-05-11 01:48:51 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-05-11 01:48:51 +0000
commit21a5e41f8fb757e55d0d7538b6e88c7a08864775 (patch)
treeea29c1c49b896afc818374a969b8db3906a4046e /sbin/pfctl
parentdbbb8cc6608d8ab10a6d1ccf7264aaf0ca6fb9c9 (diff)
Don't ntohs() the translation port for nat as it is already in host byte order.
Makes nat ... -> $ext_if port 500 rules work correctly again. ok henning@ dhartemi@ frantzen@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 211f07f9e81..6d7085938be 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.373 2003/05/10 00:45:23 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.374 2003/05/11 01:48:50 mcbride Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2512,7 +2512,7 @@ natrule : nataction interface af proto fromto redirpool pooltype
PF_NAT_PROXY_PORT_HIGH;
} else if (!r.rpool.proxy_port[1])
r.rpool.proxy_port[1] =
- ntohs(r.rpool.proxy_port[0]);
+ r.rpool.proxy_port[0];
break;
default:
break;