1
0
Fork 0
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:
Nils Wallménius 2010-09-08 19:53:50 +00:00
parent f09499f70f
commit 4120652df4

View file

@ -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)