diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-02-11 11:45:45 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2015-03-03 22:07:11 +0100 |
commit | 9ddd0671a42e7d4edf1dc847794468312bf84ab1 (patch) | |
tree | a00deb850b48ced6b3d554944b2dcf4847a951ed /source4/torture | |
parent | bad22e6ec5426e40b8333842f121f6bbca4b9513 (diff) | |
download | samba-9ddd0671a42e7d4edf1dc847794468312bf84ab1.tar.gz |
torture-backupkey: Assert dcerpc_bkrp_BackupKey_r call was successful
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit 286223f150dbb84022d48ef845119cd47afc30d3)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/backupkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/rpc/backupkey.c b/source4/torture/rpc/backupkey.c index 7f5676a34c4..81876438855 100644 --- a/source4/torture/rpc/backupkey.c +++ b/source4/torture/rpc/backupkey.c @@ -579,6 +579,9 @@ static struct bkrp_BackupKey *createRestoreGUIDStruct(struct torture_context *tc torture_assert_ntstatus_ok(tctx, dcerpc_bkrp_BackupKey_r(b, tctx, r), "Get GUID"); + torture_assert_werr_ok(tctx, r->out.result, + "Get GUID"); + /* * We have to set it outside of the function createRetreiveBackupKeyGUIDStruct * the len of the blob, this is due to the fact that they don't have the @@ -1079,6 +1082,9 @@ static bool test_RetreiveBackupKeyGUID_2048bits(struct torture_context *tctx, dcerpc_bkrp_BackupKey_r(b, tctx, r), "Get GUID"); + torture_assert_werr_ok(tctx, r->out.result, + "Get GUID"); + out_blob.length = *r->out.data_out_len; hret = hx509_cert_init_data(hctx, out_blob.data, out_blob.length, &cert); |