summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 09:03:17 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:13 +0100
commitb70d1168cf511c83eaa6a2761d3924935513d233 (patch)
treeecf4b3deb799d8b92580b1da8cf045051512624d /source3/utils
parentb91a20f704363374bc37aaa75e5d2c80f7997017 (diff)
downloadsamba-b70d1168cf511c83eaa6a2761d3924935513d233.tar.gz
samba-b70d1168cf511c83eaa6a2761d3924935513d233.tar.bz2
samba-b70d1168cf511c83eaa6a2761d3924935513d233.zip
s3-net: Don't leak username.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index c112a15e76..870ad2287f 100644
--- 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;
- const char *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;
}