[dovecot-cvs] dovecot/src/auth master-connection.c,1.10,1.11
cras at procontrol.fi
cras at procontrol.fi
Wed Jul 9 19:31:03 EEST 2003
Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv14941
Modified Files:
master-connection.c
Log Message:
Crashfix if user's home directory wasn't given
Index: master-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/master-connection.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- master-connection.c 23 May 2003 14:40:49 -0000 1.10
+++ master-connection.c 9 Jul 2003 15:31:01 -0000 1.11
@@ -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);
More information about the dovecot-cvs
mailing list