summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-14 01:46:56 +0000
committerbrian <brian@FreeBSD.org>2000-03-14 01:46:56 +0000
commit1afd290619970695d6aef0c25e94560a182d888e (patch)
treefd7c354a88da0a85dfde4bf40067a924c78b003d /usr.sbin
parentc905df5091647a7076a6c9da188e3098e8d9cd1c (diff)
downloadFreeBSD-src-1afd290619970695d6aef0c25e94560a182d888e.zip
FreeBSD-src-1afd290619970695d6aef0c25e94560a182d888e.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/route.c2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud