lib/krb5: srv_find_realm do not leak 'r' if unreachable
Change-Id: I6e16676c9cb820d6a25820523608cb9854fa2ce4
This commit is contained in:
@@ -113,6 +113,7 @@ srv_find_realm(krb5_context context, krb5_krbhst_info ***res, int *count,
|
||||
if (num_srv == 0) {
|
||||
_krb5_debug(context, 0,
|
||||
"DNS SRV RR lookup domain nodata: %s", domain);
|
||||
rk_dns_free_data(r);
|
||||
return KRB5_KDC_UNREACH;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user