mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
set task = NULL so we can't use it later on accident.
This commit is contained in:
parent
212e466f42
commit
cd5b3f4f1f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue