summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2018-07-10 07:58:14 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2018-07-10 07:58:14 +0000
commit23e1767aaf478bb6887360d636565c66f9e94d91 (patch)
tree8b4d2d3b003f31f1c3c774a4cf6f2203777a1b3a
parent1805b6856b968dff7d4a7c56a6d9f12a79d0bd2d (diff)
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