summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-02-15 15:52:52 +1100
committerAndrew Tridgell <tridge@samba.org>2008-02-15 15:52:52 +1100
commit9e6327dc41c8f3a4b523ccbab869e6b001e1b6df (patch)
treef6f3cc8faa922ebed8196c6b3b7340281e66fe8b
parent80362574b83eaa27c4fcf8f93546f8700fc736c8 (diff)
downloadsamba-9e6327dc41c8f3a4b523ccbab869e6b001e1b6df.tar.gz
samba-9e6327dc41c8f3a4b523ccbab869e6b001e1b6df.tar.bz2
samba-9e6327dc41c8f3a4b523ccbab869e6b001e1b6df.zip
make sure lp_ctx is initialised
(This used to be commit 3abb33c8bff9aac8ba1ba4783b919732e5159283)
-rw-r--r--source4/torture/locktest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c
index de25c0abc8..039484a8cb 100644
--- a/source4/torture/locktest.c
+++ b/source4/torture/locktest.c
@@ -528,7 +528,7 @@ static int test_locks(struct loadparm_context *lp_ctx, char *share[NSERVERS])
-_NORETURN_ static void usage(poptContext pc)
+static void usage(poptContext pc)
{
printf("Usage:\n\tlocktest //server1/share1 //server2/share2 [options..]\n");
poptPrintUsage(pc, stdout, 0);
@@ -578,6 +578,7 @@ _NORETURN_ static void usage(poptContext pc)
poptSetOtherOptionHelp(pc, "<unc1> <unc2>");
+ lp_ctx = cmdline_lp_ctx;
servers[0] = cli_credentials_init(talloc_autofree_context());
servers[1] = cli_credentials_init(talloc_autofree_context());
cli_credentials_guess(servers[0], lp_ctx);