CID 454694: Code maintainability issue in lib/dns/request.c
The newly updated Coverity Scan claims "code maintainability issue" in lib/dns/request.c
on v9.16.
/lib/dns/request.c: 981 in dns_request_createvia()
975 /*
976 * Try again using TCP.
977 */
978 dns_message_renderreset(message);
979 dns_dispatch_removeresponse(&request->dispentry, NULL);
980 dns_dispatch_detach(&request->dispatch);
>>> CID 454694: Code maintainability issues (UNUSED_VALUE)
>>> Assigning value "NULL" to "sock" here, but that stored value is overwritten before it can be used.
981 sock = NULL;
982 options |= DNS_REQUESTOPT_TCP;
983 settsigkey = false;
984 goto use_tcp;
985 }
986 if (result != ISC_R_SUCCESS) {