diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-01 16:07:46 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-01 16:07:46 +0000 |
commit | 1b9f3a1e893dffadfc5df164c0d3da11c95b8ee4 (patch) | |
tree | 90166bd3618bc68e85967ecc27cebd4c808a0a9a | |
parent | a6e7513247db0324a6dd0c72f5f8f62b9cb53db3 (diff) |
KNF
-rw-r--r-- | sys/net/pf_ioctl.c | 4 | ||||
-rw-r--r-- | sys/net/pf_norm.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index f03a749527c..828443a7985 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.38 2003/01/01 03:53:22 dhartmei Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.39 2003/01/01 16:07:01 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -156,7 +156,7 @@ pf_get_pool(char *anchorname, char *rulesetname, u_int32_t ticket, if (ruleset == NULL) return (NULL); rs_num = pf_get_ruleset_number(rule_action); - if (rs_num >= PF_RULESET_MAX) + if (rs_num >= PF_RULESET_MAX) return (NULL); if (active) { if (check_ticket && ticket != diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c index a118b464e4a..5558543adf6 100644 --- a/sys/net/pf_norm.c +++ b/sys/net/pf_norm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_norm.c,v 1.45 2003/01/01 04:26:19 dhartmei Exp $ */ +/* $OpenBSD: pf_norm.c,v 1.46 2003/01/01 16:07:45 henning Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> @@ -825,7 +825,7 @@ pf_normalize_ip(struct mbuf **m0, int dir, struct ifnet *ifp, u_short *reason) if (r == NULL) return (PF_PASS); - else + else r->packets++; /* Check for illegal packets */ @@ -1040,7 +1040,7 @@ pf_normalize_tcp(int dir, struct ifnet *ifp, struct mbuf *m, int ipoff, if (rm == NULL) return (PF_PASS); - else + else r->packets++; flags = th->th_flags; |