diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-13 21:11:39 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-13 21:11:39 +0400 |
commit | bb915f5fa60de1a5b7e6089fcfc680281a590463 (patch) | |
tree | e5ee800f9a18c1b8ebbe390e1762ad93fc778d9e | |
parent | 32ca97392057d279eeddd1aef36c1836880e8b89 (diff) |
bgpd: fix regression in ORF procesing (BZ#688)
This issue has been pointed out by Lou Berger and Tim Browski.
* bgp_packet.c
* bgp_route_refresh_receive(): restore if() condition, which was
broken by commit fdbc8e77c88f751924299d0bc752371d5cc31116
-rw-r--r-- | bgpd/bgp_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 4854f1dd..2c0113da 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2054,7 +2054,7 @@ bgp_route_refresh_receive (struct peer *peer, bgp_size_t size) break; } ok = ((p_end - p_pnt) >= sizeof(u_int32_t)) ; - if (!ok) + if (ok) { memcpy (&seq, p_pnt, sizeof (u_int32_t)); p_pnt += sizeof (u_int32_t); |