all other free functions bgpd has.
-/* $OpenBSD: config.c,v 1.69 2018/07/11 21:10:07 benno Exp $ */
+/* $OpenBSD: config.c,v 1.70 2018/08/02 12:46:02 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
struct prefixset *ps;
struct prefixset_item *psi;
+ if (psh == NULL)
+ return;
while (!SIMPLEQ_EMPTY(psh)) {
ps = SIMPLEQ_FIRST(psh);
-/* $OpenBSD: rde.c,v 1.404 2018/08/02 09:46:35 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.405 2018/08/02 12:46:02 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
ribs[rid].state = RECONF_NONE;
}
- if (prefixsets_old != NULL)
- free_prefixsets(prefixsets_old);
+ free_prefixsets(prefixsets_old);
prefixsets_old = NULL;
log_info("RDE reconfigured");