]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Do not double-expand key in passdb dict when authenticating
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 6 Mar 2017 12:59:46 +0000 (14:59 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 16 Mar 2017 17:42:47 +0000 (19:42 +0200)
Broken by 79042f8c

src/auth/db-dict.c

index ad9f86cd1ba93235f4b43823dab18173fb3123ab..37e91265ef696f39663e4a64993f1395e9945637 100644 (file)
@@ -408,7 +408,7 @@ static int db_dict_iter_lookup_key_values(struct db_dict_value_iter *iter)
                        continue;
 
                str_truncate(path, strlen(DICT_PATH_SHARED));
-               var_expand(path, key->key->key, iter->var_expand_table);
+               str_append(path, key->key->key);
                ret = dict_lookup(iter->conn->dict, iter->pool,
                                  str_c(path), &key->value);
                if (ret > 0) {