Module: kamailio Branch: master Commit: c5a3c2cd8c6952356237c235c2ade159c030382b URL: https://github.com/kamailio/kamailio/commit/c5a3c2cd8c6952356237c235c2ade159c030382b
Author: Sipwise Development Team <supp...@sipwise.com> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2023-06-14T14:26:27+02:00 db_redis: skip empty keys --- Modified: src/modules/db_redis/redis_dbase.c --- Diff: https://github.com/kamailio/kamailio/commit/c5a3c2cd8c6952356237c235c2ade159c030382b.diff Patch: https://github.com/kamailio/kamailio/commit/c5a3c2cd8c6952356237c235c2ade159c030382b.patch --- diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c index 83d11e9b318..bda72446d96 100644 --- a/src/modules/db_redis/redis_dbase.c +++ b/src/modules/db_redis/redis_dbase.c @@ -700,6 +700,9 @@ static int db_redis_build_query_keys(km_redis_con_t *con, const str *table_name, LM_DBG("no direct entry key found, checking type keys\n"); for(type = table->types; type; type = type->next) { key = type->keys; + /* skip value-less master keys */ + if(!key) + continue; LM_DBG("checking type '%.*s'\n", type->type.len, type->type.s); if(db_redis_find_query_key(key, table_name, table, &type->type, _k, _v, _op, _n, &keyname, &key_found, ts_scan_start) _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org