diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-13 12:46:58 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-01-13 12:46:58 -0500 |
| commit | 3edabb996f2b017940b28f64119da33567d4847c (patch) | |
| tree | 6dcb5cdb351c7f3d51be1e5f2788cc66a312f8c1 | |
| parent | 6f26de536bfca09ff7920a03f78b2315e823175c (diff) | |
zebra: Fixup paranthesis mistake
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | zebra/zebra_routemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c index 27bff68c75..f8f3c4318d 100644 --- a/zebra/zebra_routemap.c +++ b/zebra/zebra_routemap.c @@ -1240,8 +1240,8 @@ route_set_src_compile (const char *arg) { union g_addr src, *psrc; - if (inet_pton(AF_INET6, arg, &src.ipv6) == 1 || - src.ipv4.s_addr && (inet_pton(AF_INET, arg, &src.ipv4) == 1)) + if ((inet_pton(AF_INET6, arg, &src.ipv6) == 1) || + (src.ipv4.s_addr && (inet_pton(AF_INET, arg, &src.ipv4) == 1))) { psrc = XMALLOC (MTYPE_ROUTE_MAP_COMPILED, sizeof (union g_addr)); *psrc = src; |
