]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix regression in ORF procesing (BZ#688)
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 13 Dec 2011 17:11:39 +0000 (21:11 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 13 Dec 2011 17:11:39 +0000 (21:11 +0400)
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

bgpd/bgp_packet.c

index 4854f1ddcfe9c22521c63959ecd6d90f8d4f388b..2c0113da756310cd7634badd483d4fab021e13ef 100644 (file)
@@ -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);