dovecot-2.0: imap, pop3: Don't crash if post-login socket path w...

dovecot at dovecot.org dovecot at dovecot.org
Mon Dec 14 02:51:11 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/06bddee57586
changeset: 10464:06bddee57586
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Dec 13 19:46:04 2009 -0500
description:
imap, pop3: Don't crash if post-login socket path wasn't given.

diffstat:

2 files changed, 2 insertions(+), 2 deletions(-)
src/imap/main.c |    2 +-
src/pop3/main.c |    2 +-

diffs (24 lines):

diff -r 093865257852 -r 06bddee57586 src/imap/main.c
--- a/src/imap/main.c	Sun Dec 13 19:29:56 2009 -0500
+++ b/src/imap/main.c	Sun Dec 13 19:46:04 2009 -0500
@@ -275,7 +275,7 @@ int main(int argc, char *argv[])
 					     &argc, &argv, NULL);
 	if (master_getopt(master_service) > 0)
 		return FATAL_DEFAULT;
-	postlogin_socket_path = t_abspath(argv[1]);
+	postlogin_socket_path = argv[1] == NULL ? NULL : t_abspath(argv[1]);
 
 	master_service_init_finish(master_service);
 	master_service_set_die_callback(master_service, imap_die);
diff -r 093865257852 -r 06bddee57586 src/pop3/main.c
--- a/src/pop3/main.c	Sun Dec 13 19:29:56 2009 -0500
+++ b/src/pop3/main.c	Sun Dec 13 19:46:04 2009 -0500
@@ -201,7 +201,7 @@ int main(int argc, char *argv[])
 					     &argc, &argv, NULL);
 	if (master_getopt(master_service) > 0)
 		return FATAL_DEFAULT;
-	postlogin_socket_path = t_abspath(argv[1]);
+	postlogin_socket_path = argv[1] == NULL ? NULL : t_abspath(argv[1]);
 
 	master_service_init_finish(master_service);
 	master_service_set_die_callback(master_service, pop3_die);


More information about the dovecot-cvs mailing list