diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-25 15:43:19 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-06-25 15:43:19 +0000 |
commit | 250e129e8b52c1a85c24841fab2bb32e57f8d3c0 (patch) | |
tree | 4433e69acfa9b7b2818063fcf81e124308d862be /usr.sbin | |
parent | 21aebee61844b2aad15c65819e3e1203c702aded (diff) |
Same code as in route(8) same RTM_VERSION check missing.
Tested and OK sthen@, OK henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/arp/arp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index f6e48dc8787..7abc2b1a965 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.47 2009/06/05 03:54:42 chris Exp $ */ +/* $OpenBSD: arp.c,v 1.48 2009/06/25 15:43:18 claudio Exp $ */ /* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */ /* @@ -603,7 +603,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) warn("read from routing socket"); |