aboutsummaryrefslogtreecommitdiff
path: root/contrib/traceroute/findsaddr-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/traceroute/findsaddr-socket.c')
-rw-r--r--contrib/traceroute/findsaddr-socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/traceroute/findsaddr-socket.c b/contrib/traceroute/findsaddr-socket.c
index 00af84366c52..b1a2903f4636 100644
--- a/contrib/traceroute/findsaddr-socket.c
+++ b/contrib/traceroute/findsaddr-socket.c
@@ -156,7 +156,8 @@ findsaddr(register const struct sockaddr_in *to,
return (errbuf);
}
- } while (rp->rtm_seq != seq || rp->rtm_pid != pid);
+ } while (rp->rtm_type != RTM_GET || rp->rtm_seq != seq ||
+ rp->rtm_pid != pid);
close(s);