s4 torture: close handle instead of using exit
authorTim Prouty <tprouty@samba.org>
Wed, 16 Dec 2009 01:17:48 +0000 (17:17 -0800)
committerTim Prouty <tprouty@samba.org>
Fri, 18 Dec 2009 01:58:34 +0000 (17:58 -0800)
source4/torture/raw/rename.c

index 7c9d15b53458cee62bcb3315e45293ebd497e2ab..187645f964ecc27b6763a28b1ecd7991dceceab8 100644 (file)
@@ -305,7 +305,7 @@ static bool test_ntrename(struct torture_context *tctx,
        status = smb_raw_rename(cli->tree, &io);
        CHECK_STATUS(status, NT_STATUS_SHARING_VIOLATION);
        
-       smb_raw_exit(cli->session);
+       smbcli_close(cli->tree, fnum);
        status = smb_raw_rename(cli->tree, &io);
        CHECK_STATUS(status, NT_STATUS_OK);