From 1afd290619970695d6aef0c25e94560a182d888e Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 14 Mar 2000 01:46:56 +0000 Subject: Don't ``break'' when we come accross a non-RTM_IFINFO type entry in the block returned by the NET_RT_IFLIST mib, ``continue'' Broken a few minutes ago by: me --- usr.sbin/ppp/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index 1ae43df..946a43e 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -314,7 +314,7 @@ Index2Nam(int idx) for (ptr = buf; ptr < end; ptr += ifm->ifm_msglen) { ifm = (struct if_msghdr *)ptr; if (ifm->ifm_type != RTM_IFINFO) - break; + continue; dl = (struct sockaddr_dl *)(ifm + 1); if (ifm->ifm_index > 0) { if (ifm->ifm_index > have) { -- cgit v1.1