瀏覽代碼

fix bogus continuation of IMAP list parsing

on error, parse_imap_list() needs to reset the nesting level in the
state, as imap_socket_read() uses that as an indicator whether list
parsing is ongoing.
Oswald Buddenhagen 4 年之前
父節點
當前提交
8c86f34bf0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/drv_imap.c

+ 1 - 0
src/drv_imap.c

@@ -924,6 +924,7 @@ parse_imap_list( imap_store_t *ctx, char **sp, parse_list_state_t *sts )
 	}
   bail:
 	free_list( sts->head );
+	sts->level = 0;
 	return LIST_BAD;
 }