Merge pull request #3454 from matt335672/coverity_fix
Fix coverity warning concerning unchecked return
This commit is contained in:
+2
-1
@@ -4294,7 +4294,8 @@ g_fips_mode_enabled(void)
|
||||
|
||||
if (fd >= 0)
|
||||
{
|
||||
if (read(fd, buff, sizeof(buff)) > 0)
|
||||
ssize_t res = read(fd, buff, sizeof(buff));
|
||||
if (res > 0 && (size_t)res < sizeof(buff))
|
||||
{
|
||||
rv = (buff[0] != '0');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user