diff options
author | brian <brian@FreeBSD.org> | 2000-03-14 01:46:56 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-14 01:46:56 +0000 |
commit | 1afd290619970695d6aef0c25e94560a182d888e (patch) | |
tree | fd7c354a88da0a85dfde4bf40067a924c78b003d /usr.sbin/ppp | |
parent | c905df5091647a7076a6c9da188e3098e8d9cd1c (diff) | |
download | FreeBSD-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/ppp')
-rw-r--r-- | usr.sbin/ppp/route.c | 2 |
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) { |