aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-29 13:10:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-29 13:10:14 +0100
commit4812f5ab9d22e65b254bef2085bcdab6fc76d42b (patch)
treed2628ddd5509c6457cbf5e5ffde497eca172197e /src
parent192c6b791d1c2b42861df6526c663f1d0814ee84 (diff)
downloadrspamd-4812f5ab9d22e65b254bef2085bcdab6fc76d42b.tar.gz
rspamd-4812f5ab9d22e65b254bef2085bcdab6fc76d42b.zip
[Minor] Fix double close in rspamc
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamdclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c
index 98b51506b..e8c0b959c 100644
--- a/src/client/rspamdclient.c
+++ b/src/client/rspamdclient.c
@@ -478,7 +478,7 @@ rspamd_client_destroy (struct rspamd_client_connection *conn)
if (conn->req != NULL) {
rspamd_client_request_free (conn->req);
}
- close (conn->fd);
+
if (conn->key) {
rspamd_pubkey_unref (conn->key);
}