diff options
author | Andreas Schneider <asn@samba.org> | 2012-06-25 17:55:02 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-07-06 10:00:56 +0200 |
commit | 1000884bb39af5df9bd375545a4d18022d046822 (patch) | |
tree | e53832178b2d33da6e073ba3f02f96aecff3554b /source4/torture | |
parent | 8f443895f20aa6d03fd5ae02cbbc6c3064bf42f4 (diff) | |
download | samba-1000884bb39af5df9bd375545a4d18022d046822.tar.gz |
s4-torture: Fix build warnings in lsa test.
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/lsa.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index f420ec18338..07bb70f17c4 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -382,6 +382,7 @@ static bool test_LookupNames2(struct dcerpc_binding_handle *b, struct lsa_TransSidArray2 sids; struct lsa_RefDomainList *domains = NULL; struct lsa_String *names; + uint32_t *input_idx; uint32_t count = 0; int i; @@ -389,7 +390,6 @@ static bool test_LookupNames2(struct dcerpc_binding_handle *b, sids.count = 0; sids.sids = NULL; - uint32_t *input_idx; r.in.num_names = 0; @@ -1270,7 +1270,7 @@ static bool test_CreateSecret(struct dcerpc_pipe *p, bool ret = true; DATA_BLOB session_key; NTTIME old_mtime, new_mtime; - DATA_BLOB blob1, blob2; + DATA_BLOB blob1; const char *secret1 = "abcdef12345699qwerty"; char *secret2; const char *secret3 = "ABCDEF12345699QWERTY"; @@ -1398,8 +1398,6 @@ static bool test_CreateSecret(struct dcerpc_pipe *p, 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); @@ -1463,8 +1461,6 @@ static bool test_CreateSecret(struct dcerpc_pipe *p, blob1.data = r6.out.new_val->buf->data; blob1.length = r6.out.new_val->buf->size; - blob2 = data_blob_talloc(tctx, NULL, blob1.length); - secret4 = sess_decrypt_string(tctx, &blob1, &session_key); @@ -1476,8 +1472,6 @@ static bool test_CreateSecret(struct dcerpc_pipe *p, blob1.data = r6.out.old_val->buf->data; blob1.length = r6.out.old_val->buf->length; - blob2 = data_blob_talloc(tctx, NULL, blob1.length); - secret2 = sess_decrypt_string(tctx, &blob1, &session_key); @@ -1549,8 +1543,6 @@ static bool test_CreateSecret(struct dcerpc_pipe *p, blob1.data = r8.out.old_val->buf->data; blob1.length = r8.out.old_val->buf->size; - blob2 = data_blob_talloc(tctx, NULL, blob1.length); - secret6 = sess_decrypt_string(tctx, &blob1, &session_key); |