From: Timo Sirainen Date: Wed, 9 Jul 2003 15:31:01 +0000 (+0300) Subject: Crashfix if user's home directory wasn't given X-Git-Tag: 1.1.alpha1~4500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d6748938802404a2e7da32381bd951644925f4b;p=thirdparty%2Fdovecot%2Fcore.git Crashfix if user's home directory wasn't given --HG-- branch : HEAD --- diff --git a/src/auth/master-connection.c b/src/auth/master-connection.c index 7098b1348a..6e3df8fe87 100644 --- a/src/auth/master-connection.c +++ b/src/auth/master-connection.c @@ -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);