]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap: imap_quote() was broken when called with a datastack pool.
authorTimo Sirainen <tss@iki.fi>
Sun, 12 Aug 2012 02:42:14 +0000 (05:42 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 12 Aug 2012 02:42:14 +0000 (05:42 +0300)
src/lib-imap/imap-quote.c

index d75db909f30e028f29709caec83bad0e6ab19bec..437564b7031afb91f721e0477d987ff35a59cc80 100644 (file)
@@ -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);