Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved var declaration.

  • Loading branch information...
commit cd34837a116c18e85d55179f08c47733cfae10f6 1 parent 27e4a9a
@jeremycx authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/LDAP.cc
View
3  src/LDAP.cc
@@ -242,11 +242,12 @@ class LDAPConnection : public ObjectWrap
THROW("Error init LDAP");
}
+ struct timeval ntimeout = { timeout, 0 };
+
if (timeout != -1) {
ntimeout.tv_sec = timeout;
}
- struct timeval ntimeout = { timeout, 0 };
ldap_set_option(c->ld, LDAP_OPT_NETWORK_TIMEOUT, &ntimeout);
ldap_set_option(c->ld, LDAP_OPT_RESTART, LDAP_OPT_ON);
Please sign in to comment.
Something went wrong with that request. Please try again.