1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

s4-torture: Fix build warnings in lsa test.

This commit is contained in:
Andreas Schneider 2012-06-25 17:55:02 +02:00 committed by Andreas Schneider
parent 8f443895f2
commit 1000884bb3

View File

@ -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);