dovecot-1.1: master: Don't crash in login_executable -D checks i...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 16 02:07:09 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/c6c50a99141f
changeset: 8205:c6c50a99141f
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 15 20:06:45 2009 -0400
description:
master: Don't crash in login_executable -D checks if protocols line doesn't have imap.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/master/master-settings.c | 6 ++++--
diffs (18 lines):
diff -r f03594a9e468 -r c6c50a99141f src/master/master-settings.c
--- a/src/master/master-settings.c Sun Mar 15 17:48:21 2009 -0400
+++ b/src/master/master-settings.c Sun Mar 15 20:06:45 2009 -0400
@@ -908,10 +908,12 @@ static bool login_want_core_dumps(struct
{
const char *p;
- p = strstr(set->server->pop3->login_executable, " -D");
+ p = set->server->pop3 == NULL ? NULL :
+ strstr(set->server->pop3->login_executable, " -D");
if (p != NULL && p[3] == '\0')
return TRUE;
- p = strstr(set->server->imap->login_executable, " -D");
+ p = set->server->imap == NULL ? NULL :
+ strstr(set->server->imap->login_executable, " -D");
if (p != NULL && p[3] == '\0')
return TRUE;
return FALSE;
More information about the dovecot-cvs
mailing list