Actually clear the right thing in rib_free()
authorbenno <benno@openbsd.org>
Tue, 10 Jul 2018 07:58:13 +0000 (07:58 +0000)
committerbenno <benno@openbsd.org>
Tue, 10 Jul 2018 07:58:13 +0000 (07:58 +0000)
Found by and with claudio.
ok phessler@ claudio@

usr.sbin/bgpd/rde_rib.c

index 826e5ce..707d35b 100644 (file)
@@ -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