From: Denis Ovsienko Date: Tue, 13 Dec 2011 17:11:39 +0000 (+0400) Subject: bgpd: fix regression in ORF procesing (BZ#688) X-Git-Tag: frr-2.0-rc1~1951 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb915f5fa60de1a5b7e6089fcfc680281a590463;p=matthieu%2Ffrr.git 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 --- diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 4854f1ddcf..2c0113da75 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);