1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

s3-net: Don't leak username.

Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
Andreas Schneider
2013-02-20 09:03:17 +01:00
committed by Alexander Bokovoy
parent b91a20f704
commit b70d1168cf

View File

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