artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
032fd3b
)
use correct byte order when printing state expiration minutes; ok henning@
author
david
<david@openbsd.org>
Tue, 12 Aug 2008 16:40:18 +0000
(16:40 +0000)
committer
david
<david@openbsd.org>
Tue, 12 Aug 2008 16:40:18 +0000
(16:40 +0000)
sbin/pfctl/pf_print_state.c
patch
|
blob
|
history
diff --git
a/sbin/pfctl/pf_print_state.c
b/sbin/pfctl/pf_print_state.c
index
e95f2b0
..
73eef11
100644
(file)
--- 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.5
1 2008/06/29 08:42:15 mcbride Exp $
*/
+/* $OpenBSD: pf_print_state.c,v 1.5
2 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);