dovecot-2.2: login-common: Fixed potential crash at client disco...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 9 10:43:03 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/5259f6320e52
changeset: 17442:5259f6320e52
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 09 13:41:59 2014 +0300
description:
login-common: Fixed potential crash at client disconnect.
Broken by recent change
diffstat:
src/login-common/client-common.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 7129fe8bc260 -r 5259f6320e52 src/login-common/client-common.c
--- a/src/login-common/client-common.c Mon Jun 09 12:14:42 2014 +0300
+++ b/src/login-common/client-common.c Mon Jun 09 13:41:59 2014 +0300
@@ -172,7 +172,8 @@
last_client = client->prev;
DLLIST_REMOVE(&clients, client);
- o_stream_uncork(client->output);
+ if (client->output != NULL)
+ o_stream_uncork(client->output);
if (!client->login_success && client->ssl_proxy != NULL)
ssl_proxy_destroy(client->ssl_proxy);
if (client->input != NULL)
More information about the dovecot-cvs
mailing list