commit 4812f5a: [Minor] Fix double close in rspamc
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Mar 29 12:14:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-03-29 13:10:14 +0100
URL: https://github.com/rspamd/rspamd/commit/4812f5ab9d22e65b254bef2085bcdab6fc76d42b (HEAD -> master)
[Minor] Fix double close in rspamc
---
src/client/rspamdclient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the Commits
mailing list