summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-06-25 15:47:19 +0000
committerclaudio <claudio@openbsd.org>2009-06-25 15:47:19 +0000
commit7f9ac982c4f9cfe6d400cd233f87be94f85fed38 (patch)
tree31301479595553c0604426f57914bb5a62365686
parentAnother copy of the strange while loop seen in route(8). Add missing (diff)
downloadwireguard-openbsd-7f9ac982c4f9cfe6d400cd233f87be94f85fed38.tar.xz
wireguard-openbsd-7f9ac982c4f9cfe6d400cd233f87be94f85fed38.zip
Another copy another missing RTM_VERSION check.
Tested and OK sthen@, OK henning@
-rw-r--r--usr.sbin/rarpd/arptab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rarpd/arptab.c b/usr.sbin/rarpd/arptab.c
index ae785c17dcc..be73e146cf7 100644
--- a/usr.sbin/rarpd/arptab.c
+++ b/usr.sbin/rarpd/arptab.c
@@ -236,7 +236,8 @@ doit:
}
do {
l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
- } while (l > 0 && (rtm->rtm_seq != seq || rtm->rtm_pid != pid));
+ } while (l > 0 && (rtm->rtm_version != RTM_VERSION ||
+ rtm->rtm_seq != seq || rtm->rtm_pid != pid));
if (l < 0)
syslog(LOG_ERR, "arptab_set: read from routing socket: %m");
return (0);