mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
Zebra zserv: bogus conditional
This looks like a bug in original code from misunderstanding of C rules of evaluation.
This commit is contained in:
parent
a6be12128c
commit
cf8a831bcb
@ -451,7 +451,7 @@ zsend_route_multipath (int cmd, struct zserv *client, struct prefix *p,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Metric */
|
/* Metric */
|
||||||
if (cmd == ZEBRA_IPV4_ROUTE_ADD || ZEBRA_IPV6_ROUTE_ADD)
|
if (cmd == ZEBRA_IPV4_ROUTE_ADD || cmd == ZEBRA_IPV6_ROUTE_ADD)
|
||||||
{
|
{
|
||||||
SET_FLAG (zapi_flags, ZAPI_MESSAGE_DISTANCE);
|
SET_FLAG (zapi_flags, ZAPI_MESSAGE_DISTANCE);
|
||||||
stream_putc (s, rib->distance);
|
stream_putc (s, rib->distance);
|
||||||
|
Loading…
Reference in New Issue
Block a user