dovecot-2.2: net_listen(): If bind(ip=any) fails with non-EADDRI...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 20 03:26:30 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/cd7e15b2d575
changeset: 14387:cd7e15b2d575
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 26 17:01:21 2012 +0300
description:
net_listen(): If bind(ip=any) fails with non-EADDRINUSE, don't crash.

diffstat:

 src/lib/network.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3980c025805c -r cd7e15b2d575 src/lib/network.c
--- a/src/lib/network.c	Mon Mar 26 16:57:32 2012 +0300
+++ b/src/lib/network.c	Mon Mar 26 17:01:21 2012 +0300
@@ -408,7 +408,7 @@
 	if (ret < 0) {
 		if (errno != EADDRINUSE) {
 			i_error("bind(%s, %u) failed: %m",
-				net_ip2addr(my_ip), *port);
+				my_ip == NULL ? "" : net_ip2addr(my_ip), *port);
 		}
 	} else {
 		/* get the actual port we started listen */


More information about the dovecot-cvs mailing list