]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: auth-scram-client - Don't assert fail when server keeps interacting unexpec...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 26 Oct 2023 14:56:30 +0000 (16:56 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Nov 2023 10:49:10 +0000 (10:49 +0000)
Issue an error instead.

src/lib-auth/auth-scram-client.c

index 010954877e7fb124e7e056daafb765b59882eb32..a8060d8cb788e58653910e4afea59232cfb7512d 100644 (file)
@@ -426,6 +426,9 @@ int auth_scram_client_input(struct auth_scram_client *client,
                                                    error_r);
                break;
        case AUTH_SCRAM_CLIENT_STATE_CLIENT_FINISH:
+               *error_r = "Server didn't finish authentication";
+               ret = -1;
+               break;
        case AUTH_SCRAM_CLIENT_STATE_END:
                i_unreached();
        }