diff options
author | jca <jca@openbsd.org> | 2017-01-17 16:30:54 +0000 |
---|---|---|
committer | jca <jca@openbsd.org> | 2017-01-17 16:30:54 +0000 |
commit | b38873a29ec2819ac536d9d8f60f452e50547180 (patch) | |
tree | 4cb362ef10e23a68f20222281b8278f82970199f /usr.sbin/ripd/ripe.h | |
parent | Completely delete the buf field of struct html and all the buf*() (diff) | |
download | wireguard-openbsd-b38873a29ec2819ac536d9d8f60f452e50547180.tar.xz wireguard-openbsd-b38873a29ec2819ac536d9d8f60f452e50547180.zip |
Keep track of dead peers instead of freeing them right away.
This mimics what ospfd does, and avoids a (mostly harmless)
use-after-free. Delay suggested by claudio@, ok florian@
Diffstat (limited to 'usr.sbin/ripd/ripe.h')
-rw-r--r-- | usr.sbin/ripd/ripe.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/ripe.h b/usr.sbin/ripd/ripe.h index 8b7020fb5e6..7dc48139c1d 100644 --- a/usr.sbin/ripd/ripe.h +++ b/usr.sbin/ripd/ripe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ripe.h,v 1.11 2014/10/25 03:23:49 lteo Exp $ */ +/* $OpenBSD: ripe.h,v 1.12 2017/01/17 16:30:54 jca Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -128,7 +128,7 @@ void md_list_clr(struct auth_md_head *); /* neighbor.c */ void nbr_init(u_int32_t); struct nbr *nbr_new(u_int32_t, struct iface *); -void nbr_act_del(struct nbr *); +void nbr_del(struct nbr *); struct nbr *nbr_find_ip(struct iface *, u_int32_t); struct nbr *nbr_find_peerid(u_int32_t); @@ -137,7 +137,7 @@ void nbr_failed_delete(struct nbr_failed *); int nbr_fsm(struct nbr *, enum nbr_event); void nbr_timeout_timer(int, short, void *); -void nbr_act_delete(struct nbr *); +void nbr_act_del(struct nbr *); const char *nbr_event_name(int); const char *nbr_action_name(int); |