diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-07-09 23:15:28 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-07-09 23:15:28 +0000 |
commit | cb5e70aef1a7e25bacac73d2e51f5eedb4bdc759 (patch) | |
tree | f175a2272c0d13a31f7ae34a61aa9ffff1cb21ce | |
parent | 0e881239f0733a522928234909a36a17fa693fe9 (diff) |
do compare in host order. found by millert@.
-rw-r--r-- | sys/net/pf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 8e4f35cf0e1..747157f92c5 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.107 2001/07/09 10:30:57 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.108 2001/07/09 23:15:27 dhartmei Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -1377,6 +1377,9 @@ pf_match_addr(u_int8_t n, u_int32_t a, u_int32_t m, u_int32_t b) int pf_match_port(u_int8_t op, u_int16_t a1, u_int16_t a2, u_int16_t p) { + NTOHS(a1); + NTOHS(a2); + NTOHS(p); switch (op) { case PF_OP_GL: return (p >= a1) && (p <= a2); |