From: Aki Tuomi Date: Mon, 27 Jul 2020 09:26:49 +0000 (+0300) Subject: lib-auth: Always iterate input arguments X-Git-Tag: 2.3.13~292 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36de1858d0f62befe6620431cb298c55ec95faa0;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Always iterate input arguments Makes next change easier --- diff --git a/src/lib-auth/auth-client-request.c b/src/lib-auth/auth-client-request.c index 290a3a6fda..00dfcdff99 100644 --- a/src/lib-auth/auth-client-request.c +++ b/src/lib-auth/auth-client-request.c @@ -272,14 +272,15 @@ void auth_client_request_server_input(struct auth_client_request *request, break; } + for (tmp = args; *tmp != NULL; tmp++) { + if (str_begins(*tmp, "resp=")) { + base64_data = *tmp + 5; + break; + } + } + switch (status) { case AUTH_REQUEST_STATUS_OK: - for (tmp = args; *tmp != NULL; tmp++) { - if (str_begins(*tmp, "resp=")) { - base64_data = *tmp + 5; - break; - } - } e_debug(e->event(), "Finished"); break; case AUTH_REQUEST_STATUS_CONTINUE: