From 05a845ed8e623c51025058037d0ca25db712ae68 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 2 Mar 1999 19:49:22 +0000 Subject: Avoid segfault --- proto/rip/rip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 9c04cf4c..593f32b7 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -368,10 +368,8 @@ rip_timer(timer *t) WALK_LIST( rif, P->interfaces ) { struct iface *iface = rif->iface; - if (rif->patt->mode == IM_QUIET) - continue; - if (!iface) continue; + if (rif->patt->mode == IM_QUIET) continue; if (!(iface->flags & IF_UP)) continue; if (iface->flags & (IF_IGNORE | IF_LOOPBACK)) continue; -- cgit v1.2.3