From 95f7b7e4960d53d5a032bb352a977cdcfb556b5e Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Wed, 4 Jan 2006 17:28:32 +0000 Subject: [PATCH] Zero out IMAP_LIST before each imap_cmd_step in browser to avoid bogus matches when the untagged response isn't a LIST response. Phil Pennock diagnosed and proposed a patch for this bug. --- imap/browse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/imap/browse.c b/imap/browse.c index ab17be50..fc83259a 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -115,6 +115,7 @@ int imap_browse (char* path, struct browser_state* state) idata->cmddata = &list; do { + list.name = 0; rc = imap_cmd_step (idata); if (rc == IMAP_CMD_CONTINUE && list.name) { -- 2.40.0