Fix potential memory leak.
Pointed-out by: pfg Approved by: pjd (mentor)
This commit is contained in:
parent
788ca347b8
commit
8133297684
@ -228,8 +228,10 @@ dns_getnameinfo(const nvlist_t *limits, const nvlist_t *nvlin, nvlist_t *nvlout)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!dns_allowed_family(limits, (int)sast.ss_family))
|
||||
return (NO_RECOVERY);
|
||||
if (!dns_allowed_family(limits, (int)sast.ss_family)) {
|
||||
error = NO_RECOVERY;
|
||||
goto out;
|
||||
}
|
||||
|
||||
flags = (int)nvlist_get_number(nvlin, "flags");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user