From a9d46264ab3eb53cf4a70edf4e5dad2fe6d86e6c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 12 Nov 2014 09:15:58 +0100 Subject: [PATCH] s4:torture/smb2: don't check the lease break connection against samba3 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source4/torture/smb2/lease.c | 7 +++++-- 1 file 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) -- 2.34.1