]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission-login: submission-proxy - Rename local variable in proxy_send_login().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 21 Feb 2022 20:36:55 +0000 (21:36 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 24 Feb 2022 07:50:34 +0000 (07:50 +0000)
src/submission-login/submission-proxy.c

index 8cb4fefbce4d1a5cf46101641a75e17648644744..8247102edf2946d59b84d6be59b4015ea3c6c331 100644 (file)
@@ -205,7 +205,7 @@ proxy_send_login(struct submission_client *client, struct ostream *output)
 {
        struct dsasl_client_settings sasl_set;
        const unsigned char *sasl_output;
-       size_t len;
+       size_t sasl_output_len;
        const char *mech_name, *error;
        string_t *str;
 
@@ -236,7 +236,7 @@ proxy_send_login(struct submission_client *client, struct ostream *output)
 
        str_printfa(str, "AUTH %s ", mech_name);
        if (dsasl_client_output(client->common.proxy_sasl_client,
-                               &sasl_output, &len, &error) < 0) {
+                               &sasl_output, &sasl_output_len, &error) < 0) {
                const char *reason = t_strdup_printf(
                        "SASL mechanism %s init failed: %s",
                        mech_name, error);
@@ -245,10 +245,10 @@ proxy_send_login(struct submission_client *client, struct ostream *output)
                        LOGIN_PROXY_FAILURE_TYPE_INTERNAL, reason);
                return -1;
        }
-       if (len == 0)
+       if (sasl_output_len == 0)
                str_append_c(str, '=');
        else
-               base64_encode(sasl_output, len, str);
+               base64_encode(sasl_output, sasl_output_len, str);
        str_append(str, "\r\n");
        o_stream_nsend(output, str_data(str), str_len(str));