]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: master_login_auth_callback() - Add assert to guard for both errormsg...
authorMarco Bettini <marco.bettini@open-xchange.com>
Wed, 6 Oct 2021 09:03:08 +0000 (05:03 -0400)
committerMarco Bettini <marco.bettini@open-xchange.com>
Thu, 7 Oct 2021 09:16:08 +0000 (11:16 +0200)
src/lib-master/master-login.c

index 512db7cf3e042660f21dda4751c27ad621e03204..e25ce35a79a7704866a8823680a77d3e652fcafa 100644 (file)
@@ -415,6 +415,8 @@ master_login_auth_callback(const char *const *auth_args, const char *errormsg,
        struct master_auth_reply reply;
        const char *postlogin_socket_path;
 
+       i_assert(errormsg != NULL || auth_args != NULL);
+       
        i_zero(&reply);
        reply.tag = client->auth_req.tag;
        reply.status = errormsg == NULL ? MASTER_AUTH_STATUS_OK :