From 1850daaed8303977e7827a9788ade830801b5fcf Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 3 Apr 2023 10:43:32 -0700 Subject: [PATCH] address coverity warnings in delv clean up coverity warnings due to recent changes to delv: - CID 451097: failure to check return value from inet_pton() - CID 451098, 451100: dead code --- bin/delv/delv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/delv/delv.c b/bin/delv/delv.c index 91ebe62348..8d68782d10 100644 --- a/bin/delv/delv.c +++ b/bin/delv/delv.c @@ -2088,12 +2088,6 @@ sendquery(void *arg) { cleanup: if (message != NULL) { - if (mname != NULL) { - dns_message_puttempname(message, &mname); - } - if (mrdataset != NULL) { - dns_message_puttemprdataset(message, &mrdataset); - } dns_message_detach(&message); } @@ -2123,7 +2117,7 @@ run_server(void *arg) { UNUSED(arg); - inet_pton(AF_INET, "127.0.0.1", &in); + RUNTIME_CHECK(inet_pton(AF_INET, "127.0.0.1", &in)); isc_sockaddr_fromin(&addr, &in, 0); CHECK(ns_server_create(mctx, matchview, &sctx));