]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: DIGEST-MD5 didn't read nonce-count parameter correctly.
authorTimo Sirainen <tss@iki.fi>
Tue, 17 Jan 2012 15:17:24 +0000 (17:17 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 17 Jan 2012 15:17:24 +0000 (17:17 +0200)
Patch by Yubao Liu.

src/auth/mech-digest-md5.c

index 7959a94209b985487e55b9076412fb41b38f18b8..9faa8350919af518b4168d9935c2240fdb32903e 100644 (file)
@@ -323,7 +323,7 @@ static bool auth_handle_response(struct digest_auth_request *request,
                return TRUE;
        }
 
-       if (strcmp(key, "nonce-count") == 0) {
+       if (strcmp(key, "nc") == 0) {
                if (request->nonce_count != NULL) {
                        *error = "nonce-count must not exist more than once";
                        return FALSE;