Fix potential memory leak.

Pointed-out by:	pfg
Approved by:	pjd (mentor)
This commit is contained in:
Mariusz Zaborski 2015-04-27 17:33:00 +00:00
parent 788ca347b8
commit 8133297684
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282101

View File

@ -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");