]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-urlauth: imap-urlauth - Don't replace error returned by imap_msgpart_url_ope...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 30 Mar 2021 11:26:08 +0000 (14:26 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Feb 2023 09:21:45 +0000 (09:21 +0000)
The original error is intended to be sent to the client.

src/lib-imap-urlauth/imap-urlauth.c

index da1b02bf4bf76ba6a7a8803a71613a28c3766379..f2c212b7e60c24319c4ce2ec6803a0e63723936b 100644 (file)
@@ -411,8 +411,7 @@ int imap_urlauth_fetch_parsed(struct imap_urlauth_context *uctx,
        }
 
        if ((ret = imap_msgpart_url_open_mailbox(mpurl, &box, error_code_r,
-                                                &error)) < 0) {
-               *client_error_r = "Internal server error";
+                                                client_error_r)) < 0) {
                imap_msgpart_url_free(&mpurl);
                return -1;
        }