(srv_get_hosts): if srv_get_hosts failes, return and ignore the error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15201 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -349,8 +349,9 @@ srv_get_hosts(krb5_context context, struct krb5_krbhst_data *kd,
|
|||||||
krb5_krbhst_info **res;
|
krb5_krbhst_info **res;
|
||||||
int count, i;
|
int count, i;
|
||||||
|
|
||||||
srv_find_realm(context, &res, &count, kd->realm, "SRV", proto, service,
|
if (srv_find_realm(context, &res, &count, kd->realm, "SRV", proto, service,
|
||||||
kd->port);
|
kd->port))
|
||||||
|
return;
|
||||||
for(i = 0; i < count; i++)
|
for(i = 0; i < count; i++)
|
||||||
append_host_hostinfo(kd, res[i]);
|
append_host_hostinfo(kd, res[i]);
|
||||||
free(res);
|
free(res);
|
||||||
|
Reference in New Issue
Block a user