diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-29 13:10:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-29 13:10:14 +0100 |
commit | 4812f5ab9d22e65b254bef2085bcdab6fc76d42b (patch) | |
tree | d2628ddd5509c6457cbf5e5ffde497eca172197e /src | |
parent | 192c6b791d1c2b42861df6526c663f1d0814ee84 (diff) | |
download | rspamd-4812f5ab9d22e65b254bef2085bcdab6fc76d42b.tar.gz rspamd-4812f5ab9d22e65b254bef2085bcdab6fc76d42b.zip |
[Minor] Fix double close in rspamc
Diffstat (limited to 'src')
-rw-r--r-- | src/client/rspamdclient.c | 2 |
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); } |