From bb193c273e63ffa42c5c0b51ecd8860398e3beab Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 30 Mar 2021 14:26:08 +0300 Subject: [PATCH] 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. --- src/lib-imap-urlauth/imap-urlauth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.47.3