From cd5b3f4f1f88ae249db79afa6f05c9769d509396 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Sat, 10 Jul 1999 00:21:42 +0000 Subject: [PATCH] set task = NULL so we can't use it later on accident. --- lib/dns/tcpmsg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/tcpmsg.c b/lib/dns/tcpmsg.c index 354c73967a..2115eed554 100644 --- a/lib/dns/tcpmsg.c +++ b/lib/dns/tcpmsg.c @@ -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); }