diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-08-18 15:56:46 -0700 |
---|---|---|
committer | Greg Troxel <gdt@ir.bbn.com> | 2010-08-19 13:44:05 -0400 |
commit | cf8a831bcb53b60a7b5c4b26dda7646ebc7506d8 (patch) | |
tree | 1d15bcbd5556cd56416b01342a1cb1afd8d89b71 /zebra | |
parent | a6be12128c29b0dc5b8a6d6923510fc7f677b775 (diff) |
Zebra zserv: bogus conditional
This looks like a bug in original code from misunderstanding
of C rules of evaluation.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index cb5e411c..dc3d432b 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -451,7 +451,7 @@ zsend_route_multipath (int cmd, struct zserv *client, struct prefix *p, } /* 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); stream_putc (s, rib->distance); |