From: Marco Bettini Date: Wed, 6 Oct 2021 09:03:08 +0000 (-0400) Subject: lib-master: master_login_auth_callback() - Add assert to guard for both errormsg... X-Git-Tag: 2.3.18~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=313ce3e70953804e8227e3c5767da116c26c108c;p=thirdparty%2Fdovecot%2Fcore.git lib-master: master_login_auth_callback() - Add assert to guard for both errormsg and auth_args being NULL --- diff --git a/src/lib-master/master-login.c b/src/lib-master/master-login.c index 512db7cf3e..e25ce35a79 100644 --- a/src/lib-master/master-login.c +++ b/src/lib-master/master-login.c @@ -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 :