aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2021-02-14 10:43:15 +0100
committerMatthias Andree <matthias.andree@gmx.de>2021-02-14 10:43:15 +0100
commit2b2ff74b057e079b43fee6be291d8f7b1c463999 (patch)
tree92df3dfb48b34abaab4897da2c3f41ec5c60de5c /imap.c
parent38653ec3ca6665dfde1ea94f094b00a5c06fcc4f (diff)
downloadfetchmail-2b2ff74b057e079b43fee6be291d8f7b1c463999.tar.gz
fetchmail-2b2ff74b057e079b43fee6be291d8f7b1c463999.tar.bz2
fetchmail-2b2ff74b057e079b43fee6be291d8f7b1c463999.zip
imap.c revise comment on timeout memory leak if auto (non-static) password buffer is used for LOGIN
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index a7ddc45f..5f65ee47 100644
--- a/imap.c
+++ b/imap.c
@@ -639,7 +639,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
|| ctl->server.authenticate == A_PASSWORD)
{
/* these sizes guarantee no buffer overflow */
- static char *remotename, *password; /* XXX FIXME: not thread-safe but is leaky on timeout */
+ static char *remotename, *password; /* XXX FIXME: not thread-safe but dynamic buffer is leaky on timeout */
size_t rnl, pwl;
rnl = 2 * strlen(ctl->remotename) + 1;
pwl = 2 * strlen(ctl->password) + 1;