]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: fix bug causing cfg->folder being set to NULL
authorAditya Garg <gargaditya08@live.com>
Fri, 20 Jun 2025 06:40:24 +0000 (12:10 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2025 15:11:16 +0000 (08:11 -0700)
commit44ba4b0bbb1a342659ca93d9ba6f475fbf9cff99
treeb8dbad35d9f7439c1938bd0d56d31d465a1f32ca
parentfcfe60668e05ffde2610bfef9045797618c145ac
imap-send: fix bug causing cfg->folder being set to NULL

6d1f198f34 (imap-send: fix leaking memory in `imap_server_conf`, 2024-06-07)
resulted a change in static int git_imap_config which resulted in cfg->folder
being incorrectly set to NULL in case imap.user, imap.pass, imap.tunnel and
imap.authmethod were defined. Because of this, since Git 2.46.0,
git-imap-send is not usable at all. The bug seems to have been unnoticed for
a long time, likely due to better options like git-send-email.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c