diff --git a/module/zfs/dsl_prop.c b/module/zfs/dsl_prop.c index d1c0059092..57ff3b10d5 100644 --- a/module/zfs/dsl_prop.c +++ b/module/zfs/dsl_prop.c @@ -123,7 +123,7 @@ dsl_prop_get_dd(dsl_dir_t *dd, const char *propname, /* Check for a iuv value. */ err = zap_lookup(mos, dsl_dir_phys(dd)->dd_props_zapobj, iuvstr, intsz, numints, buf); - if (dsl_prop_known_index(zfs_name_to_prop(propname), + if (err == 0 && dsl_prop_known_index(zfs_name_to_prop(propname), *(uint64_t *)buf) != 1) err = ENOENT; if (err != ENOENT) {