summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-08-26 16:26:46 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-08-26 16:26:46 +1000
commitf1c0c3896edc889f7fda65e27b27aaefc60d46d7 (patch)
tree551faf2d3d6fcfaa5551619106f87ba2d4703d5b /source4
parenta22b9d648553e5e7e0ee19606d9bceeb3b356241 (diff)
downloadsamba-f1c0c3896edc889f7fda65e27b27aaefc60d46d7.tar.gz
samba-f1c0c3896edc889f7fda65e27b27aaefc60d46d7.tar.bz2
samba-f1c0c3896edc889f7fda65e27b27aaefc60d46d7.zip
Don't use lsa_Delete any more, as smbd now refuses it.
(This used to be commit 8e1285a1ee60e3d3b7352ab7269d535c41916b46)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/session_key.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index 0df7e576ee..c069c62724 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -42,7 +42,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
struct lsa_SetSecret r3;
struct lsa_QuerySecret r4;
struct policy_handle sec_handle;
- struct lsa_Delete d;
+ struct lsa_DeleteObject d;
struct lsa_DATA_BUF buf1;
struct lsa_DATA_BUF_PTR bufp1;
DATA_BLOB enc_key;
@@ -128,7 +128,8 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
torture_assert_str_equal(tctx, secret1, secret2, "Returned secret invalid");
d.in.handle = &sec_handle;
- status = dcerpc_lsa_Delete(p, tctx, &d);
+ d.out.handle = &sec_handle;
+ status = dcerpc_lsa_DeleteObject(p, tctx, &d);
torture_assert_ntstatus_ok(tctx, status, "delete should have returned OKINVALID_HANDLE");
return true;
}