Skip to content

Commit

Permalink
Merge pull request #2707 from jpereira/v4/fix22
Browse files Browse the repository at this point in the history
ldap/connection.c: Fix _ldap_connection_init()
  • Loading branch information
alandekok committed May 22, 2019
2 parents 46a292f + d3aa9fc commit 7f432cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ldap/connection.c
Expand Up @@ -418,7 +418,7 @@ static fr_connection_state_t _ldap_connection_init(int *fd_out, void *uctx)
{
fr_ldap_connection_t *c = talloc_get_type_abort(uctx, fr_ldap_connection_t);
fr_ldap_state_t state;
struct timeval to = { 0 };
fr_time_delta_t to = 0;

*fd_out = -1; /* We set a real value later */

Expand All @@ -431,7 +431,7 @@ static fr_connection_state_t _ldap_connection_init(int *fd_out, void *uctx)
if (ldap_set_option(c->handle, LDAP_OPT_CONNECT_ASYNC, LDAP_OPT_ON) != LDAP_OPT_SUCCESS) {
return FR_CONNECTION_STATE_FAILED;
}
fr_ldap_connection_timeout_set(c, &to); /* Forces LDAP_X_CONNECTING */
fr_ldap_connection_timeout_set(c, to); /* Forces LDAP_X_CONNECTING */

state = fr_ldap_state_next(c);
if (state == FR_LDAP_STATE_ERROR) return FR_CONNECTION_STATE_FAILED;
Expand Down

0 comments on commit 7f432cd

Please sign in to comment.