]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
cache entry_list_parse: squash a simple FIXME
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 13 Jun 2018 16:04:04 +0000 (18:04 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 13 Jun 2018 16:04:04 +0000 (18:04 +0200)
lib/cache/entry_list.c

index 3c633538248dc0d88a3aea2008b473fa61658238..e8d63d5a33eaa6d94585ffb74b9d7340edeb7109 100644 (file)
@@ -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);
        }