mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Fix Coverity ID 554
This commit is contained in:
parent
44122f06d0
commit
471b1b0c58
@ -187,6 +187,9 @@ char *rep_getpass(const char *prompt)
|
|||||||
in_fd = fileno(in);
|
in_fd = fileno(in);
|
||||||
if (fgets(buf, bufsize, in) == NULL) {
|
if (fgets(buf, bufsize, in) == NULL) {
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
|
if (in && in != stdin) {
|
||||||
|
fclose(in);
|
||||||
|
}
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user