diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-04 10:08:48 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-11 16:20:30 +0100 |
commit | 312860e6a6ec13c7b54e080dfd66170ba89c7677 (patch) | |
tree | 96e21521c3b9f537c7ad8faf0e0875e185028144 /source4/torture | |
parent | 8eb7ad289c844c6def4aeeb6fffbbde2549108cb (diff) | |
download | samba-312860e6a6ec13c7b54e080dfd66170ba89c7677.tar.gz samba-312860e6a6ec13c7b54e080dfd66170ba89c7677.tar.xz samba-312860e6a6ec13c7b54e080dfd66170ba89c7677.zip |
s4:torture/rpc: remove unused variable in session_key.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/session_key.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c index a1f863d7be..8e3f140211 100644 --- a/source4/torture/rpc/session_key.c +++ b/source4/torture/rpc/session_key.c @@ -47,7 +47,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p, DATA_BLOB enc_key; DATA_BLOB session_key; NTTIME old_mtime, new_mtime; - DATA_BLOB blob1, blob2; + DATA_BLOB blob1; const char *secret1 = "abcdef12345699qwerty"; char *secret2; char *secname; @@ -124,9 +124,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p, torture_fail(tctx, "No secret buffer returned"); blob1.data = r4.out.new_val->buf->data; blob1.length = r4.out.new_val->buf->size; - - blob2 = data_blob_talloc(tctx, NULL, blob1.length); - + secret2 = sess_decrypt_string(tctx, &blob1, &session_key); torture_assert_str_equal(tctx, secret1, secret2, "Returned secret invalid"); |