dns: fix coverity 249189, 249198

Zero-initialize the temporary struct on stack.

Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I89ced4cca8e832827fe054e2e60986de5910360c
This commit is contained in:
Andrew Yourtchenko
2022-08-18 12:17:05 +00:00
committed by Matthew Smith
parent cc488fc766
commit 635930f5bb

View File

@ -1370,7 +1370,7 @@ vl_api_dns_resolve_name_t_handler (vl_api_dns_resolve_name_t * mp)
dns_main_t *dm = &dns_main;
vl_api_dns_resolve_name_reply_t *rmp;
dns_cache_entry_t *ep = 0;
dns_pending_request_t _t0, *t0 = &_t0;
dns_pending_request_t _t0 = { 0 }, *t0 = &_t0;
int rv;
dns_resolve_name_t rn;
@ -1416,7 +1416,7 @@ vl_api_dns_resolve_ip_t_handler (vl_api_dns_resolve_ip_t * mp)
int i, len;
u8 *lookup_name = 0;
u8 digit, nybble;
dns_pending_request_t _t0, *t0 = &_t0;
dns_pending_request_t _t0 = { 0 }, *t0 = &_t0;
if (mp->is_ip6)
{