summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2008-08-12 16:40:19 +0000
committerDavid Krause <david@cvs.openbsd.org>2008-08-12 16:40:19 +0000
commit5c33c883d895ed9bd0359ca2c4ca110a3bb6c6a2 (patch)
tree0841617249e1018e7d2bbc97d7baa4b8ca2123fd /sbin
parentde9cb87a3eac5f1871180028677efeac0e664ce5 (diff)
use correct byte order when printing state expiration minutes; ok henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pf_print_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index e95f2b04a06..73eef1199c7 100644
--- a/sbin/pfctl/pf_print_state.c
+++ b/sbin/pfctl/pf_print_state.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_print_state.c,v 1.51 2008/06/29 08:42:15 mcbride Exp $ */
+/* $OpenBSD: pf_print_state.c,v 1.52 2008/08/12 16:40:18 david Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -306,7 +306,7 @@ print_state(struct pfsync_state *s, int opts)
printf(" age %.2u:%.2u:%.2u", creation, min, sec);
sec = expire % 60;
expire /= 60;
- min = s->expire % 60;
+ min = expire % 60;
expire /= 60;
printf(", expires in %.2u:%.2u:%.2u", expire, min, sec);