mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Untangle assignment and result check.
Michael
(This used to be commit 465a3b356c
)
This commit is contained in:
parent
34e579fce5
commit
2cb68e3898
@ -448,9 +448,9 @@ got_connection:
|
||||
|
||||
/* Otherwise setup the TCP LDAP session */
|
||||
|
||||
if ( (ads->ldap.ld = ldap_open_with_timeout(ads->config.ldap_server_name,
|
||||
LDAP_PORT, lp_ldap_timeout())) == NULL )
|
||||
{
|
||||
ads->ldap.ld = ldap_open_with_timeout(ads->config.ldap_server_name,
|
||||
LDAP_PORT, lp_ldap_timeout());
|
||||
if (ads->ldap.ld == NULL) {
|
||||
return ADS_ERROR(LDAP_OPERATIONS_ERROR);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user