]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission-login: submission-proxy - Avoid sending empty XCLIENT FORWARD field.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 18 Jun 2021 17:52:33 +0000 (19:52 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 23 Jul 2021 06:47:02 +0000 (06:47 +0000)
src/submission-login/submission-proxy.c

index a148318ee1e8fd9b5b3c9f7b63941f09cf4a89a6..db84ef737efe8dc1ec7d7796e9b16cfeb4b1b02e 100644 (file)
@@ -38,6 +38,8 @@ proxy_compose_xclient_forward(struct submission_client *client)
                        str_append_tabescaped(str, (*arg)+8);
                }
        }
+       if (str_len(str) == 0)
+               return NULL;
 
        return t_base64_encode(0, 0, str_data(str), str_len(str));
 }