]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
crashfix
authorTimo Sirainen <tss@iki.fi>
Mon, 25 Aug 2003 03:02:49 +0000 (06:02 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 25 Aug 2003 03:02:49 +0000 (06:02 +0300)
--HG--
branch : HEAD

src/master/mail-process.c

index b51d96f17949e4df249180869181383eedfd0eea..0329d62f52f67353600ad92c82a569df05fede84 100644 (file)
@@ -156,7 +156,7 @@ int create_mail_process(struct login_group *group, int socket,
        home_dir = data + reply->home_idx;
        chroot_dir = data + reply->chroot_idx;
 
-       if (*chroot_dir == '\0')
+       if (*chroot_dir == '\0' && set->mail_chroot != NULL)
                chroot_dir = set->mail_chroot;
 
        if (*chroot_dir != '\0' && !validate_chroot(set, chroot_dir)) {