]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Close SSL connections cleanly
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 15 Nov 2017 14:12:15 +0000 (16:12 +0200)
committerTimo Sirainen <tss@dovecot.fi>
Wed, 15 Nov 2017 14:23:28 +0000 (16:23 +0200)
Don't close the socket before SSL "close notify" is sent.

src/login-common/client-common.c

index 0fbab2a13be5389395427b06ed34ec084fbe4396..7b977de494ae33485537648c15c69caf6f9fccb5 100644 (file)
@@ -352,7 +352,7 @@ bool client_unref(struct client **_client)
                client->v.free(client);
 
        if (client->ssl_iostream != NULL)
-               ssl_iostream_unref(&client->ssl_iostream);
+               ssl_iostream_destroy(&client->ssl_iostream);
        if (client->iostream_fd_proxy != NULL)
                iostream_proxy_unref(&client->iostream_fd_proxy);
        if (client->fd_proxying) {