mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
lib: Fix CID 1107218 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
6bcc037b5b
commit
86f04bfc24
@ -368,11 +368,8 @@ static void popt_common_credentials_callback(poptContext con,
|
||||
}
|
||||
|
||||
if (getenv("USER")) {
|
||||
char *puser = SMB_STRDUP(getenv("USER"));
|
||||
if (!puser) {
|
||||
exit(ENOMEM);
|
||||
}
|
||||
set_cmdline_auth_info_username(auth_info, puser);
|
||||
set_cmdline_auth_info_username(auth_info,
|
||||
getenv("USER"));
|
||||
}
|
||||
|
||||
if (getenv("PASSWD")) {
|
||||
|
Loading…
Reference in New Issue
Block a user