From: Timo Sirainen Date: Tue, 30 Mar 2021 11:26:08 +0000 (+0300) Subject: lib-imap-urlauth: imap-urlauth - Don't replace error returned by imap_msgpart_url_ope... X-Git-Tag: 2.4.0~2966 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb193c273e63ffa42c5c0b51ecd8860398e3beab;p=thirdparty%2Fdovecot%2Fcore.git lib-imap-urlauth: imap-urlauth - Don't replace error returned by imap_msgpart_url_open_mailbox() The original error is intended to be sent to the client. --- diff --git a/src/lib-imap-urlauth/imap-urlauth.c b/src/lib-imap-urlauth/imap-urlauth.c index da1b02bf4b..f2c212b7e6 100644 --- a/src/lib-imap-urlauth/imap-urlauth.c +++ b/src/lib-imap-urlauth/imap-urlauth.c @@ -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; }