dovecot-2.0: lib-master: Fixed crash on IPC client if server dis...

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 15 04:32:34 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/c402fb407501
changeset: 13059:c402fb407501
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 15 04:32:14 2012 +0200
description:
lib-master: Fixed crash on IPC client if server disconnected unexpectedly.

diffstat:

 src/lib-master/ipc-client.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 8e1cab0b9374 -r c402fb407501 src/lib-master/ipc-client.c
--- a/src/lib-master/ipc-client.c	Mon Feb 13 18:27:44 2012 +0200
+++ b/src/lib-master/ipc-client.c	Wed Feb 15 04:32:14 2012 +0200
@@ -113,6 +113,7 @@
 	o_stream_destroy(&client->output);
 	if (close(client->fd) < 0)
 		i_error("close(%s) failed: %m", client->path);
+	client->fd = -1;
 }
 
 struct ipc_client *


More information about the dovecot-cvs mailing list