git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b91a20f
)
s3-net: Don't leak username.
author
Andreas Schneider
<asn@samba.org>
Wed, 20 Feb 2013 08:03:17 +0000
(09:03 +0100)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 22 Feb 2013 15:36:13 +0000
(16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc.c
b/source3/utils/net_rpc.c
index c112a15e7635c6df5d431a82fc26e19a5e7ffabf..870ad2287f2a9878a0d31b5cec92756f5913e615 100644
(file)
--- a/
source3/utils/net_rpc.c
+++ b/
source3/utils/net_rpc.c
@@
-5372,7
+5372,7
@@
static int rpc_file_user(struct net_context *c, int argc, const char **argv)
{
NET_API_STATUS status;
uint32 preferred_len = 0xffffffff, i;
- c
onst c
har *username=NULL;
+ char *username=NULL;
uint32_t total_entries = 0;
uint32_t entries_read = 0;
uint32_t resume_handle = 0;
@@
-5411,6
+5411,7
@@
static int rpc_file_user(struct net_context *c, int argc, const char **argv)
display_file_info_3(&i3[i]);
}
done:
+ SAFE_FREE(username);
return status;
}