diff options
author | 2009-06-25 15:47:19 +0000 | |
---|---|---|
committer | 2009-06-25 15:47:19 +0000 | |
commit | 7f9ac982c4f9cfe6d400cd233f87be94f85fed38 (patch) | |
tree | 31301479595553c0604426f57914bb5a62365686 | |
parent | Another copy of the strange while loop seen in route(8). Add missing (diff) | |
download | wireguard-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.c | 3 |
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); |