diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-05-06 14:51:12 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-05-06 14:51:12 +0000 |
commit | eae0f1afd522b5b1f65f288047d915d0dfd28260 (patch) | |
tree | 65e4c3ddf8ec4d34ea2568118dfe74e888f7e1ac /usr.sbin/bgpd | |
parent | dea7062538591cd055302b30e67b563013021126 (diff) |
actually reset p->auth_established to 0 in pfkey_[md5sig|ipsec]_remove
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/pfkey.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/pfkey.c b/usr.sbin/bgpd/pfkey.c index 0c78c50103c..a136adf4631 100644 --- a/usr.sbin/bgpd/pfkey.c +++ b/usr.sbin/bgpd/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.28 2004/05/06 14:41:47 henning Exp $ */ +/* $OpenBSD: pfkey.c,v 1.29 2004/05/06 14:51:11 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -526,6 +526,8 @@ pfkey_md5sig_remove(struct peer *p) if (pfkey_sa_remove(&p->conf.remote_addr, &p->conf.local_addr, &p->conf.auth.spi_in) == -1) return (-1); + + p->auth_established = 0; return (0); } @@ -663,6 +665,7 @@ pfkey_ipsec_remove(struct peer *p) if (pfkey_reply(fd, NULL) < 0) return (-1); + p->auth_established = 0; return (0); } |