r24585: put in the right state variable when doing a SMBecho - this caused the
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Aug 2007 01:16:04 +0000 (01:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:20 +0000 (15:02 -0500)
wrong connection to reconnect on a SMBecho failure
(This used to be commit c61415b05ddd29c7214384189f7d0ddabdaa3b71)

source4/torture/raw/lockbench.c

index 168131a6d291752f6c93bdea36d1a2cbde707a48..6908fbeef93994a5137219b16b0ff78d851af931 100644 (file)
@@ -295,7 +295,7 @@ static void report_rate(struct event_context *ev, struct timed_event *te,
                p.in.size = 0;
                p.in.data = NULL;
                req = smb_raw_echo_send(state[i].tree->session->transport, &p);
-               req->async.private = state;
+               req->async.private = &state[i];
                req->async.fn      = echo_completion;
        }
 }