]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: dict_lookup_async() - Add missing assert to check for key prefix and username
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Oct 2021 16:54:41 +0000 (19:54 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 12 Oct 2021 11:07:27 +0000 (11:07 +0000)
src/lib-dict/dict.c

index c1cd76692d856660aed8da59c6bccd03aeaa0480..cdaec09ee09fe841ef402bf8c61f653c71e5f9da 100644 (file)
@@ -332,6 +332,7 @@ void dict_lookup_async(struct dict *dict, const struct dict_op_settings *set,
                       const char *key, dict_lookup_callback_t *callback,
                       void *context)
 {
+       i_assert(dict_key_prefix_is_valid(key, set->username));
        if (dict->v.lookup_async == NULL) {
                struct dict_lookup_result result;