aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-29 12:46:18 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-29 12:46:18 +0000
commit47947673589848dc2dfda3c62a9977808c37235b (patch)
tree792913c4e7fa53cb89334e5ee5da554f530129fd /contrib
parent673c7a93eacf462bc53fa82a4008b3a1ae2db3b1 (diff)
downloadrspamd-47947673589848dc2dfda3c62a9977808c37235b.tar.gz
rspamd-47947673589848dc2dfda3c62a9977808c37235b.zip
[Fix] Do not forget to clear pointers on IOC reset
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/util.c2
1 files changed, 2 insertions, 0 deletions
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;
}