s4-torture: Fix build warnings in lsa test.
authorAndreas Schneider <asn@samba.org>
Mon, 25 Jun 2012 15:55:02 +0000 (17:55 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 6 Jul 2012 08:00:56 +0000 (10:00 +0200)
source4/torture/rpc/lsa.c

index f420ec183386105990ec5c64d7b6663654bf7388..07bb70f17c41568736050c60a7a25d9fa18665bd 100644 (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);