From 6a7dec21e25a8d9661dd9bb9bf0073634f69960e Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 12 Feb 2003 13:03:55 +0000 Subject: KNF after ryan --- sbin/pfctl/parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sbin/pfctl') diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 66aa63fe0e5..522b3f8d467 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.314 2003/02/12 12:48:40 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.315 2003/02/12 13:03:54 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2328,7 +2328,7 @@ natrule : nataction interface af proto fromto redirpool pooltype staticport switch (r.action) { case PF_RDR: - if (!$6->rport.b && $6->rport.t && + if (!$6->rport.b && $6->rport.t && $5.dst.port != NULL) { r.rpool.proxy_port[1] = ntohs($6->rport.a) + @@ -2812,15 +2812,15 @@ rdr_consistent(struct pf_rule *r) struct pf_pooladdr *pa; if (r->proto != IPPROTO_TCP && r->proto != IPPROTO_UDP) { - if (r->src.port_op) { + if (r->src.port_op) { yyerror("src port only applies to tcp/udp"); problems++; } - if (r->dst.port_op) { + if (r->dst.port_op) { yyerror("dst port only applies to tcp/udp"); problems++; } - if (r->rpool.proxy_port[0]) { + if (r->rpool.proxy_port[0]) { yyerror("rpool port only applies to tcp/udp"); problems++; } -- cgit v1.2.3