diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-06-08 18:25:51 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2006-06-08 18:25:51 +0000 |
commit | 122179c6dcb81d030d78d185a0de3ab10f101c6a (patch) | |
tree | c25ea1c6a949e6f23e6c4ccc608cba9015642778 /sbin/ipsecctl | |
parent | 72bd10810ae10fe25924307b76f4b1934f3ea0d5 (diff) |
Fix a typo: When testing for quick mode lifetimes, make sure to
reference quick mode lifetimes, too, not main mode lifetimes.
Otherwise we might dereference a NULL pointer...
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ike.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c index 3e21ddbdfaf..2553102ee3f 100644 --- a/sbin/ipsecctl/ike.c +++ b/sbin/ipsecctl/ike.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike.c,v 1.36 2006/06/02 15:43:37 naddy Exp $ */ +/* $OpenBSD: ike.c,v 1.37 2006/06/08 18:25:50 hshoexer Exp $ */ /* * Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -75,7 +75,7 @@ ike_section_general(struct ipsec_rule *r, FILE *fd) if (r->mmlife && r->mmlife->lifetime != -1) fprintf(fd, SET "[General]:Default-phase-1-lifetime=%d force\n", r->mmlife->lifetime); - if (r->qmlife && r->mmlife->lifetime != -1) + if (r->qmlife && r->qmlife->lifetime != -1) fprintf(fd, SET "[General]:Default-phase-2-lifetime=%d force\n", r->qmlife->lifetime); } |