mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Fix Coverity ID 436
This commit is contained in:
parent
0d50b4ee90
commit
9e0ee1ad4f
@ -327,6 +327,11 @@ static void get_password_file(void)
|
||||
close_it = True;
|
||||
}
|
||||
|
||||
if (fd < 0) {
|
||||
fprintf(stderr, "fd = %d, < 0\n", fd);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for(p = pass, *p = '\0'; /* ensure that pass is null-terminated */
|
||||
p && p - pass < sizeof(pass);) {
|
||||
switch (read(fd, p, 1)) {
|
||||
|
Loading…
Reference in New Issue
Block a user