From: Vladimír Čunát Date: Wed, 13 Jun 2018 16:04:04 +0000 (+0200) Subject: cache entry_list_parse: squash a simple FIXME X-Git-Tag: v2.4.0~19^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5565a1b7925f511bf52928bfa9e83bcdcf0d506c;p=thirdparty%2Fknot-resolver.git cache entry_list_parse: squash a simple FIXME --- diff --git a/lib/cache/entry_list.c b/lib/cache/entry_list.c index 3c6335382..e8d63d5a3 100644 --- a/lib/cache/entry_list.c +++ b/lib/cache/entry_list.c @@ -50,8 +50,8 @@ void entry_list_memcpy(struct entry_apex *ea, entry_list_t list) int entry_list_parse(const knot_db_val_t val, entry_list_t list) { - if (!list) { - //FIXME allow empty val? + const bool ok = val.data && val.len && list; + if (!ok) { assert(!EINVAL); return kr_error(EINVAL); }