mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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")) {
|
if (getenv("USER")) {
|
||||||
char *puser = SMB_STRDUP(getenv("USER"));
|
set_cmdline_auth_info_username(auth_info,
|
||||||
if (!puser) {
|
getenv("USER"));
|
||||||
exit(ENOMEM);
|
|
||||||
}
|
|
||||||
set_cmdline_auth_info_username(auth_info, puser);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getenv("PASSWD")) {
|
if (getenv("PASSWD")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user