git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68879fd
)
libcli/auth: remove unused variable in msrpc_parse()
author
Stefan Metzmacher
<metze@samba.org>
Mon, 9 May 2016 14:14:04 +0000
(16:14 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/libcli/auth/msrpc_parse.c
b/libcli/auth/msrpc_parse.c
index 74a7bcc27a8e8110367fbe6df68b02062bb00f60..86ba2ec00d4d4d569db59a47e3d08969a25eeef6 100644
(file)
--- a/
libcli/auth/msrpc_parse.c
+++ b/
libcli/auth/msrpc_parse.c
@@
-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;
}