From 5cc7a3a22261d92ca07c09e14545a9ad38a90db9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 28 Apr 2011 18:12:03 +1000 Subject: s3-libads Move variables into if (socket_wrapper_dir()) where they are used. --- source3/libads/ldap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') 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)) { -- cgit