summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery_dc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/namequery_dc.c b/source3/libsmb/namequery_dc.c
index 0c1207d4e5..7dac69e2db 100644
--- a/source3/libsmb/namequery_dc.c
+++ b/source3/libsmb/namequery_dc.c
@@ -123,7 +123,11 @@ static BOOL ads_dc_name(const char *domain,
fstrcpy(srv_name, ads->config.ldap_server_name);
strupper_m(srv_name);
+#ifdef HAVE_ADS
*dc_ip = ads->ldap.ip;
+#else
+ ZERO_STRUCT(*dc_ip);
+#endif
ads_destroy(&ads);
DEBUG(4,("ads_dc_name: using server='%s' IP=%s\n",