The 'request' pointer is used before it is checked. Perform the check
before using the pointer.
req_log(ISC_LOG_DEBUG(3), "req_response: request %p: %s", request,
isc_result_totext(result));
+ REQUIRE(VALID_REQUEST(request));
+
if (result == ISC_R_TIMEDOUT) {
LOCK(&request->requestmgr->locks[request->hash]);
if (request->udpcount > 1) {
goto done;
}
- REQUIRE(VALID_REQUEST(request));
-
LOCK(&request->requestmgr->locks[request->hash]);
if (result != ISC_R_SUCCESS) {