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:
parent
68879fd18a
commit
b74ff8c4da
@ -243,14 +243,8 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
|
|||||||
uint16_t len1, len2;
|
uint16_t len1, len2;
|
||||||
uint32_t ptr;
|
uint32_t ptr;
|
||||||
uint32_t *v;
|
uint32_t *v;
|
||||||
size_t p_len = 1024;
|
|
||||||
char *p = talloc_array(mem_ctx, char, p_len);
|
|
||||||
bool ret = true;
|
bool ret = true;
|
||||||
|
|
||||||
if (!p) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
for (i=0; format[i]; i++) {
|
for (i=0; format[i]; i++) {
|
||||||
switch (format[i]) {
|
switch (format[i]) {
|
||||||
@ -411,6 +405,5 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
talloc_free(p);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user