]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Crashfix if user's home directory wasn't given
authorTimo Sirainen <tss@iki.fi>
Wed, 9 Jul 2003 15:31:01 +0000 (18:31 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 9 Jul 2003 15:31:01 +0000 (18:31 +0300)
--HG--
branch : HEAD

src/auth/master-connection.c

index 7098b1348a75921d4761f8e35018b6fcbc3916ef..6e3df8fe871ef0d97e02c1ef91bf498c6886c6e3 100644 (file)
@@ -55,7 +55,7 @@ fill_reply(const struct user_data *user, size_t *reply_size)
        reply.virtual_user_idx = reply_add(buf, user->virtual_user);
        reply.mail_idx = reply_add(buf, user->mail);
 
-       p = strstr(user->home, "/./");
+       p = user->home != NULL ? strstr(user->home, "/./") : NULL;
        if (p == NULL) {
                reply.home_idx = reply_add(buf, user->home);
                reply.chroot_idx = reply_add(buf, NULL);