summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2018-07-10 07:58:13 +0000
committerbenno <benno@openbsd.org>2018-07-10 07:58:13 +0000
commit0e2e2c268c19e3f7bd4f82366470472fc1cc8fce (patch)
treef690a0095cf3a0a512b0b3d5c875664f67204e00
parentbuffer.[ch] and bufaux.c are no more (diff)
downloadwireguard-openbsd-0e2e2c268c19e3f7bd4f82366470472fc1cc8fce.tar.xz
wireguard-openbsd-0e2e2c268c19e3f7bd4f82366470472fc1cc8fce.zip
Actually clear the right thing in rib_free()
Found by and with claudio. ok phessler@ claudio@
-rw-r--r--usr.sbin/bgpd/rde_rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 826e5cee959..707d35b802e 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.167 2018/07/09 15:35:59 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.168 2018/07/10 07:58:13 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -171,7 +171,7 @@ rib_free(struct rib *rib)
rd = &ribs[rib->id];
filterlist_free(rd->in_rules_tmp);
filterlist_free(rd->in_rules);
- bzero(rib, sizeof(struct rib_desc));
+ bzero(rd, sizeof(struct rib_desc));
}
int