forked from len0rd/rockbox
keybox: do not leak filehandle when the wrong password is entered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28047 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f09499f70f
commit
4120652df4
1 changed files with 2 additions and 2 deletions
|
@ -554,10 +554,10 @@ static int keybox(void)
|
|||
return FILE_OPEN_ERROR;
|
||||
bytes_read = rb->read(fd, &buffer, sizeof(buffer));
|
||||
|
||||
rb->close(fd);
|
||||
|
||||
if (parse_buffer())
|
||||
return 0;
|
||||
|
||||
rb->close(fd);
|
||||
}
|
||||
|
||||
while (!done)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue