r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should...
[samba.git] / source4 / torture / locktest.c
index 9758cd2cf666f14178eceab384138b50a3cd757b..08313b6d57a3f35a1abbd95a89eaff93552bbc08 100644 (file)
@@ -26,6 +26,7 @@
 #include "libcli/libcli.h"
 #include "param/param.h"
 #include "dynconfig.h"
+#include "libcli/resolve/resolve.h"
 
 static int numops = 1000;
 static bool showall;
@@ -155,7 +156,9 @@ static struct smbcli_state *connect_one(struct loadparm_context *lp_ctx,
                                                server, 
                                                lp_smb_ports(lp_ctx),
                                                share, NULL,
-                                               servers[snum], NULL);
+                                               servers[snum], 
+                                               lp_resolve_context(lp_ctx),
+                                               NULL);
                if (!NT_STATUS_IS_OK(status)) {
                        sleep(2);
                }