set task = NULL so we can't use it later on accident.
This commit is contained in:
@@ -190,6 +190,9 @@ dns_tcpmsg_readmessage(dns_tcpmsg_t *tcpmsg,
|
||||
result = isc_socket_recv(tcpmsg->sock, ®ion, ISC_FALSE,
|
||||
tcpmsg->task, recv_length, tcpmsg);
|
||||
|
||||
if (result != ISC_R_SUCCESS)
|
||||
tcpmsg->task = NULL;
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user