libcli/auth: remove unused variable in msrpc_parse()
authorStefan Metzmacher <metze@samba.org>
Mon, 9 May 2016 14:14:04 +0000 (16:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jul 2016 17:07:16 +0000 (19:07 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/auth/msrpc_parse.c

index 74a7bcc27a8e8110367fbe6df68b02062bb00f60..86ba2ec00d4d4d569db59a47e3d08969a25eeef6 100644 (file)
@@ -243,14 +243,8 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
        uint16_t len1, len2;
        uint32_t ptr;
        uint32_t *v;
-       size_t p_len = 1024;
-       char *p = talloc_array(mem_ctx, char, p_len);
        bool ret = true;
 
-       if (!p) {
-               return false;
-       }
-
        va_start(ap, format);
        for (i=0; format[i]; i++) {
                switch (format[i]) {
@@ -411,6 +405,5 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
 
 cleanup:
        va_end(ap);
-       talloc_free(p);
        return ret;
 }