diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-11-12 09:15:58 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-11-27 16:45:05 +0100 |
commit | a9d46264ab3eb53cf4a70edf4e5dad2fe6d86e6c (patch) | |
tree | 9735e2709236bddb8bd4e8a8ab9186547f95e967 | |
parent | c0f2b46d69dc7e729bac766785b26a1911a80825 (diff) | |
download | samba-a9d46264ab3eb53cf4a70edf4e5dad2fe6d86e6c.tar.gz |
s4:torture/smb2: don't check the lease break connection against samba3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source4/torture/smb2/lease.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c index d10dcc55435..2c5cbd0e51e 100644 --- a/source4/torture/smb2/lease.c +++ b/source4/torture/smb2/lease.c @@ -25,6 +25,7 @@ #include "libcli/smb2/smb2_calls.h" #include "torture/torture.h" #include "torture/smb2/proto.h" +#include "torture/util.h" #include "libcli/smb/smbXcli_base.h" #define CHECK_VAL(v, correct) do { \ @@ -463,8 +464,10 @@ static struct { do { \ _CHECK_BREAK_INFO(__oldstate, __state, __key); \ CHECK_VAL(break_info.lease_break.new_epoch, __epoch); \ - CHECK_VAL((uintptr_t)break_info.lease_transport, \ - (uintptr_t)__transport); \ + if (!TARGET_IS_SAMBA3(tctx)) { \ + CHECK_VAL((uintptr_t)break_info.lease_transport, \ + (uintptr_t)__transport); \ + } \ } while(0) static void torture_lease_break_callback(struct smb2_request *req) |