Commit d31428cd authored by Jan Maria Matejka's avatar Jan Maria Matejka
Browse files

Merge branch 'int-new' into show-route

parents 9aa8d1dc f3a8cf05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ bgp_encode_next_hop(struct bgp_write_state *s, eattr *a, byte *buf, uint size)
   * store it and encode it later by AFI-specific hooks.
   */

  if (s->channel->afi == BGP_AF_IPV4)
  if ((s->channel->afi == BGP_AF_IPV4) && !s->channel->ext_next_hop)
  {
    ASSERT(a->u.ptr->length == sizeof(ip_addr));