]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: test-auth-client - Fix authenid check to be assert
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Oct 2021 17:18:21 +0000 (20:18 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 12 Oct 2021 11:07:27 +0000 (11:07 +0000)
It can never be NULL at this point.

src/master/test-auth-client.c

index 3e4df1ef0481b6fccea8ad38ed284edd64730435..af295a16d64ac98532d1e9a4c8af93f259fa5c36 100644 (file)
@@ -343,8 +343,7 @@ test_auth_handshake_auth_plain(struct server_connection *conn, unsigned int id,
                return FALSE;
        }
 
-       if (authenid == NULL)
-               authenid = authid;
+       i_assert(authenid != NULL);
        if (strcmp(authenid, "harrie") == 0 && strcmp(pass, "frop") == 0) {
                o_stream_nsend_str(
                        conn->conn.output,