From: Timo Sirainen Date: Thu, 7 Oct 2021 17:18:21 +0000 (+0300) Subject: master: test-auth-client - Fix authenid check to be assert X-Git-Tag: 2.3.18~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b314a81a69fa35b0cb08ccc70e564c4c5d482b0f;p=thirdparty%2Fdovecot%2Fcore.git master: test-auth-client - Fix authenid check to be assert It can never be NULL at this point. --- diff --git a/src/master/test-auth-client.c b/src/master/test-auth-client.c index 3e4df1ef04..af295a16d6 100644 --- a/src/master/test-auth-client.c +++ b/src/master/test-auth-client.c @@ -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,