From: vivek Date: Thu, 1 Mar 2018 19:50:46 +0000 (+0000) Subject: lib, zebra: Fix warnings X-Git-Tag: frr-5.0-dev~167^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=558283638bb50ff24ea28bab89c1bb4c89ccc3dd;p=matthieu%2Ffrr.git lib, zebra: Fix warnings Signed-off-by: Vivek Venkatraman --- diff --git a/lib/ipaddr.h b/lib/ipaddr.h index 3857b83027..e8dbe9cf09 100644 --- a/lib/ipaddr.h +++ b/lib/ipaddr.h @@ -90,6 +90,7 @@ static inline void ipv4_to_ipv4_mapped_ipv6(struct in6_addr *in6, struct in_addr in) { u_int32_t addr_type = htonl(0xFFFF); + memset(in6, 0, sizeof(struct in6_addr)); memcpy((char *)in6 + 8, &addr_type, sizeof(addr_type)); memcpy((char *)in6 + 12, &in, sizeof(struct in_addr)); diff --git a/zebra/zserv.c b/zebra/zserv.c index 983b04ed91..1fc2bfd309 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -1190,7 +1190,7 @@ static int zread_route_add(struct zserv *client, u_short length, re->vrf_id); /* if this an EVPN route entry, - program the nh as neigh + * program the nh as neigh */ if (CHECK_FLAG(api.flags, ZEBRA_FLAG_EVPN_ROUTE)) { @@ -1226,7 +1226,7 @@ static int zread_route_add(struct zserv *client, u_short length, re->vrf_id); /* if this an EVPN route entry, - program the nh as neigh + * program the nh as neigh */ if (CHECK_FLAG(api.flags, ZEBRA_FLAG_EVPN_ROUTE)) {