cid#318946 Argument cannot be negative
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I83716319a797ffb5e49c4b98676bfe864a75dec5
This commit is contained in:
parent
d078354eb7
commit
b44a2b71b9
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ namespace Util
|
|||
{
|
||||
LOG_ERR("failed to read " << length << " hard random bytes, got " << len << " for hash: " << errno);
|
||||
}
|
||||
close(fd);
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
}
|
||||
|
||||
hex.rdbuf()->setLineLength(0); // Don't insert line breaks.
|
||||
|
|
Loading…
Reference in a new issue