1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli/auth: remove unused variable in msrpc_parse()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-05-09 16:14:04 +02:00
parent 68879fd18a
commit b74ff8c4da

View 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;
}