1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Jeremy.
(This used to be commit 8fe47b0bf2)
This commit is contained in:
Jeremy Allison 2004-05-06 23:16:52 +00:00 committed by Gerald (Jerry) Carter
parent 835eaa42ca
commit 675ecdd5ba
2 changed files with 4 additions and 1 deletions

View File

@ -49,8 +49,10 @@ static BOOL ads_dc_name(const char *domain, const char *realm, struct in_addr *d
ads_connect(ads);
#endif
if (!ads->config.realm)
if (!ads->config.realm) {
ads_destroy(&ads);
return False;
}
fstrcpy(srv_name, ads->config.ldap_server_name);
strupper_m(srv_name);

View File

@ -106,6 +106,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
for ( i=0; i<(*count); i++ )
return_ip[i] = ret[i].ip;
free( ret );
return return_ip;
}