mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
parent
4cbcd16414
commit
8fe47b0bf2
@ -49,8 +49,10 @@ static BOOL ads_dc_name(const char *domain, const char *realm, struct in_addr *d
|
|||||||
ads_connect(ads);
|
ads_connect(ads);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!ads->config.realm)
|
if (!ads->config.realm) {
|
||||||
|
ads_destroy(&ads);
|
||||||
return False;
|
return False;
|
||||||
|
}
|
||||||
|
|
||||||
fstrcpy(srv_name, ads->config.ldap_server_name);
|
fstrcpy(srv_name, ads->config.ldap_server_name);
|
||||||
strupper_m(srv_name);
|
strupper_m(srv_name);
|
||||||
|
@ -106,6 +106,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
|
|||||||
for ( i=0; i<(*count); i++ )
|
for ( i=0; i<(*count); i++ )
|
||||||
return_ip[i] = ret[i].ip;
|
return_ip[i] = ret[i].ip;
|
||||||
|
|
||||||
|
free( ret );
|
||||||
return return_ip;
|
return return_ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user