diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2015-02-11 11:45:45 +1300 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2015-02-25 01:08:11 +0100 |
| commit | 286223f150dbb84022d48ef845119cd47afc30d3 (patch) | |
| tree | ea053f4b868e9391a033b04f5483fa6d494bc214 /source4 | |
| parent | d9529dbab6f0482d408bf9c4ea9bd911da8897e5 (diff) | |
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>
Diffstat (limited to 'source4')
| -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 7f5676a34c..8187643885 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); |
