Browse Source

zebra: match gateway when deleting NEXTHOP_IPV4_IFINDEX routes

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Feng Lu <lu.feng@6wind.com>
Christian Franke 6 years ago
parent
commit
23f5f7c3dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      zebra/zserv.c

+ 1 - 0
zebra/zserv.c

@@ -879,6 +879,7 @@ zread_ipv4_delete (struct zserv *client, u_short length)
 	      break;
 	    case ZEBRA_NEXTHOP_IPV4_IFINDEX:
 	      nexthop.s_addr = stream_get_ipv4 (s);
+	      nexthop_p = &nexthop;
 	      ifindex = stream_getl (s);
 	      break;
 	    case ZEBRA_NEXTHOP_IPV6: