-/* $OpenBSD: rde.c,v 1.421 2018/09/09 12:33:51 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.422 2018/09/09 15:02:26 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
u_int16_t rid;
for (rid = 0; rid < rib_size; rid++) {
- if (*ribs[rid].name == '\0')
+ if (!rib_valid(rid))
continue;
if (ribs[rid].dumping)
rib_dump_r(&ribs[rid].ribctx);
/* now do the Adj-RIB-Out sync */
for (rid = 0; rid < rib_size; rid++) {
- if (*ribs[rid].name == '\0')
+ if (!rib_valid(rid))
continue;
ribs[rid].state = RECONF_NONE;
}
}
for (rid = 0; rid < rib_size; rid++) {
- if (*ribs[rid].name == '\0')
+ if (!rib_valid(rid))
continue;
if (ribs[rid].state == RECONF_RELOAD) {
struct rib_context *ctx;