summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-28 18:12:03 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-29 16:38:12 +1000
commit5cc7a3a22261d92ca07c09e14545a9ad38a90db9 (patch)
tree8fc54ecedb2679b30a095437d349e661b003f5bb /source3/libads
parentbb520dceac7e55ba63826edd9a12aba7c877db38 (diff)
downloadsamba-5cc7a3a22261d92ca07c09e14545a9ad38a90db9.tar.gz
samba-5cc7a3a22261d92ca07c09e14545a9ad38a90db9.tar.bz2
samba-5cc7a3a22261d92ca07c09e14545a9ad38a90db9.zip
s3-libads Move variables into if (socket_wrapper_dir()) where they are used.
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index eff851047e..de3ad5aa77 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -65,10 +65,6 @@ static void gotalarm_sig(int signum)
{
LDAP *ldp = NULL;
- int fd, ldap_err;
- NTSTATUS status;
- char *uri;
-
DEBUG(10, ("Opening connection to LDAP server '%s:%d', timeout "
"%u seconds\n", server, port, to));
@@ -77,6 +73,10 @@ static void gotalarm_sig(int signum)
* as this is the best way to get the emulated TCP socket into
* OpenLDAP */
if (socket_wrapper_dir() != NULL) {
+ int fd, ldap_err;
+ NTSTATUS status;
+ char *uri;
+
status = open_socket_out(ss, port, to, &fd);
if (!NT_STATUS_IS_OK(status)) {