diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-02-24 16:05:43 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-02-24 16:05:43 +0000 |
commit | cb38749f39f85daba7de118ec5025711fd6cc39d (patch) | |
tree | 2333c994329678a50ba1d187c9a7d9d60e218559 /sbin/isakmpd | |
parent | 3eaf78c67562dbaff62053deaac23d9f45f8933f (diff) |
dpd_find_sa: only ready SAs, otherwise DPD will delete SAs owned by
an exchange; ok hshoexer
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/dpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/dpd.c b/sbin/isakmpd/dpd.c index ebcbf642b8a..6c355777f02 100644 --- a/sbin/isakmpd/dpd.c +++ b/sbin/isakmpd/dpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dpd.c,v 1.7 2004/12/28 15:15:08 deraadt Exp $ */ +/* $OpenBSD: dpd.c,v 1.8 2005/02/24 16:05:42 markus Exp $ */ /* * Copyright (c) 2004 Håkan Olsson. All rights reserved. @@ -245,7 +245,7 @@ dpd_find_sa(struct sa *sa, void *v_sa) if (!isakmp_sa->id_i || !isakmp_sa->id_r) return (0); - return (sa->phase == 2 && + return (sa->phase == 2 && (sa->flags & SA_FLAG_READY) && memcmp(sa->id_i, isakmp_sa->id_i, sa->id_i_len) == 0 && memcmp(sa->id_r, isakmp_sa->id_r, sa->id_r_len) == 0); } |