diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-05-17 02:46:23 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-05-17 02:46:23 +0000 |
commit | ed06c1aed7325c7d5327ea6b8fa755ff2abb622a (patch) | |
tree | a34ae42303e366db3a82dab30050dfbb957b5996 /sbin/pfctl | |
parent | d02cdd71a9fb485c9242a869ad49594345fa40df (diff) |
A little bugfix. We want pfioc_states, not pfioc_state.
ok henning@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index b7b70cdc45b..b98378e4301 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.171 2003/05/12 01:25:31 dhartmei Exp $ */ +/* $OpenBSD: pfctl.c,v 1.172 2003/05/17 02:46:22 mcbride Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -752,7 +752,7 @@ pfctl_show_states(int dev, u_int8_t proto, int opts) warn("DIOCGETSTATES"); return (-1); } - if (ps.ps_len + sizeof(struct pfioc_state) < len) + if (ps.ps_len + sizeof(struct pfioc_states) < len) break; if (len == 0 && ps.ps_len == 0) return (0); |