commit | cf8a831bcb53b60a7b5c4b26dda7646ebc7506d8 | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <shemminger@vyatta.com> | Wed Aug 18 15:56:46 2010 -0700 |
committer | Greg Troxel <gdt@ir.bbn.com> | Thu Aug 19 13:44:05 2010 -0400 |
tree | 1d15bcbd5556cd56416b01342a1cb1afd8d89b71 | |
parent | a6be12128c29b0dc5b8a6d6923510fc7f677b775 [diff] [blame] |
Zebra zserv: bogus conditional This looks like a bug in original code from misunderstanding of C rules of evaluation.
diff --git a/zebra/zserv.c b/zebra/zserv.c index cb5e411..dc3d432 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c
@@ -451,7 +451,7 @@ } /* 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);