From 47947673589848dc2dfda3c62a9977808c37235b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 29 Jan 2022 12:46:18 +0000 Subject: [PATCH] [Fix] Do not forget to clear pointers on IOC reset --- contrib/librdns/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c index f4c442563..900791b14 100644 --- a/contrib/librdns/util.c +++ b/contrib/librdns/util.c @@ -694,6 +694,7 @@ rdns_ioc_tcp_reset (struct rdns_io_channel *ioc) ioc->tcp->read_buf_allocated = 0; ioc->tcp->next_read_size = 0; ioc->tcp->cur_read = 0; + ioc->tcp->cur_read_buf = NULL; } struct rdns_tcp_output_chain *oc, *tmp; @@ -703,6 +704,7 @@ rdns_ioc_tcp_reset (struct rdns_io_channel *ioc) } ioc->tcp->cur_output_chains = 0; + ioc->tcp->output_chain = NULL; ioc->flags &= ~RDNS_CHANNEL_CONNECTED; } -- 2.39.5