summaryrefslogtreecommitdiff
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-06-25 15:47:20 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-06-25 15:47:20 +0000
commitacb0cca6a4b9cfbd09f6f68cb75c95df1bf3cf23 (patch)
tree5f2cc36b79149b23c09a931c5855cd04b42429af /usr.sbin/rarpd
parent5d7aa2542bf8f0b1831727990e9a317c2b4deb98 (diff)
Another copy another missing RTM_VERSION check.
Tested and OK sthen@, OK henning@
Diffstat (limited to 'usr.sbin/rarpd')
-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);