1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Jeremy.
This commit is contained in:
Jeremy Allison 2004-05-06 23:16:52 +00:00 committed by Gerald (Jerry) Carter
parent 4cbcd16414
commit 8fe47b0bf2
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); 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);

View File

@ -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;
} }