[dovecot-cvs] dovecot/src/auth mech-digest-md5.c,1.15,1.16
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 20 11:33:24 EEST 2003
Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv19560
Modified Files:
mech-digest-md5.c
Log Message:
recent change broke it
Index: mech-digest-md5.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech-digest-md5.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mech-digest-md5.c 21 Sep 2003 16:21:36 -0000 1.15
+++ mech-digest-md5.c 20 Oct 2003 07:33:21 -0000 1.16
@@ -219,6 +219,9 @@
{
const char *const *tmp;
+ if (*realm == '\0')
+ return TRUE;
+
for (tmp = auth_realms; *tmp != NULL; tmp++) {
if (strcasecmp(realm, *tmp) == 0)
return TRUE;
@@ -500,15 +503,17 @@
copy++;
}
- if (!auth->nonce_found) {
- *error = "Missing nonce parameter";
- failed = TRUE;
- } else if (auth->cnonce == NULL) {
- *error = "Missing cnonce parameter";
- failed = TRUE;
- } else if (auth->username == NULL) {
- *error = "Missing username parameter";
- failed = TRUE;
+ if (!failed) {
+ if (!auth->nonce_found) {
+ *error = "Missing nonce parameter";
+ failed = TRUE;
+ } else if (auth->cnonce == NULL) {
+ *error = "Missing cnonce parameter";
+ failed = TRUE;
+ } else if (auth->username == NULL) {
+ *error = "Missing username parameter";
+ failed = TRUE;
+ }
}
if (auth->nonce_count == NULL)
More information about the dovecot-cvs
mailing list