From: Timo Sirainen Date: Sun, 12 Aug 2012 02:42:14 +0000 (+0300) Subject: lib-imap: imap_quote() was broken when called with a datastack pool. X-Git-Tag: 2.2.alpha1~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e7b41f3081d29786e7dc7f4344bb5b249dcb48e;p=thirdparty%2Fdovecot%2Fcore.git lib-imap: imap_quote() was broken when called with a datastack pool. --- diff --git a/src/lib-imap/imap-quote.c b/src/lib-imap/imap-quote.c index d75db909f3..437564b703 100644 --- a/src/lib-imap/imap-quote.c +++ b/src/lib-imap/imap-quote.c @@ -115,7 +115,7 @@ const char *imap_quote(pool_t pool, const unsigned char *value, if (value == NULL) return "NIL"; - if (!pool->datastack_pool) + if (pool->datastack_pool) ret = imap_quote_internal(pool, value, value_len, fix_text); else T_BEGIN { ret = imap_quote_internal(pool, value, value_len, fix_text);