changeset 6618:39f5251b04f9 HEAD

digest_md5_generate(): Fail with fatal instead of panic if username isn't given. This can easily happen with dovecotpw utility.
author Timo Sirainen <tss@iki.fi>
date Sat, 27 Oct 2007 18:25:44 +0300
parents f33be4f9ba4d
children 2a36e7d9ddb6
files src/auth/password-scheme.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/password-scheme.c	Sat Oct 27 18:07:03 2007 +0300
+++ b/src/auth/password-scheme.c	Sat Oct 27 18:25:44 2007 +0300
@@ -446,7 +446,7 @@
 	unsigned char *digest;
 
 	if (user == NULL)
-		i_panic("digest_md5_generate(): username not given");
+		i_fatal("digest_md5_generate(): username not given");
 
 	/* user:realm:passwd */
 	realm = strchr(user, '@');