set task = NULL so we can't use it later on accident.

This commit is contained in:
Michael Graff 1999-07-10 00:21:42 +00:00
parent 212e466f42
commit cd5b3f4f1f

View file

@ -190,6 +190,9 @@ dns_tcpmsg_readmessage(dns_tcpmsg_t *tcpmsg,
result = isc_socket_recv(tcpmsg->sock, &region, ISC_FALSE,
tcpmsg->task, recv_length, tcpmsg);
if (result != ISC_R_SUCCESS)
tcpmsg->task = NULL;
return (result);
}