summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-06-25 17:55:02 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-07-06 10:00:56 +0200
commit1000884bb39af5df9bd375545a4d18022d046822 (patch)
treee53832178b2d33da6e073ba3f02f96aecff3554b /source4/torture/rpc
parent8f443895f20aa6d03fd5ae02cbbc6c3064bf42f4 (diff)
downloadsamba-1000884bb39af5df9bd375545a4d18022d046822.tar.gz
samba-1000884bb39af5df9bd375545a4d18022d046822.tar.bz2
samba-1000884bb39af5df9bd375545a4d18022d046822.zip
s4-torture: Fix build warnings in lsa test.
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/lsa.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index f420ec1833..07bb70f17c 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);