Cache updates have resurrected the bug described in
5afa5a164ff1
("evaluate: check for NULL datatype in rhs in lookup expr").
This is triggered by testcases/cache/0008_delete_by_handle_0.
Fixes: df48e56e987f ("cache: add hashtable cache for sets")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
return table_not_found(ctx);
set = set_cache_find(table, (*expr)->identifier);
- if (set == NULL)
+ if (set == NULL || !set->key)
return set_not_found(ctx, &(*expr)->location,
(*expr)->identifier);