mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Fix Coverity ID 554
(This used to be commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
This commit is contained in:
parent
e2ab1a0f98
commit
2157f67e38
@ -187,6 +187,9 @@ char *rep_getpass(const char *prompt)
|
||||
in_fd = fileno(in);
|
||||
if (fgets(buf, bufsize, in) == NULL) {
|
||||
buf[0] = 0;
|
||||
if (in && in != stdin) {
|
||||
fclose(in);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user