Mercurial > dovecot > core-2.2
changeset 1606:7bc682625eaa HEAD
Crashfix if user's home directory wasn't given
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 09 Jul 2003 18:31:01 +0300 |
parents | 92289fa71af4 |
children | ec4d15b87491 |
files | src/auth/master-connection.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/master-connection.c Wed Jul 09 18:23:40 2003 +0300 +++ b/src/auth/master-connection.c Wed Jul 09 18:31:01 2003 +0300 @@ -55,7 +55,7 @@ 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);