1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Untangle assignment and result check.

Michael
(This used to be commit 465a3b356c)
This commit is contained in:
Michael Adam 2008-01-04 21:56:57 +01:00
parent 34e579fce5
commit 2cb68e3898

View File

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