Fixes to Coverity defect 84478 and to 72759 which has reappeared.

This commit is contained in:
Markus Makela
2014-12-11 09:43:59 +02:00
parent 89ccc7c927
commit c75ba90f6f
2 changed files with 3 additions and 1 deletions

View File

@ -252,6 +252,7 @@ MAXKEYS key;
"Error : failed opening /dev/random. Error %d, %s.",
errno,
strerror(errno))));
close(fd);
return 1;
}
@ -260,6 +261,7 @@ MAXKEYS key;
LOGIF(LE, (skygw_log_write_flush(
LOGFILE_ERROR,
"Error : failed to read /dev/random.")));
close(fd);
close(randfd);
return 1;
}