Fixes to Coverity defects 78241 78242 78243 78244 78245

This commit is contained in:
Markus Makela
2014-11-13 08:56:02 +02:00
parent fc5c3943e8
commit aaa9bfd5c2
3 changed files with 6 additions and 5 deletions

View File

@ -376,7 +376,7 @@ int syseno = 0;
syseno = setsockopt(listener->fd, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof(one));
if(syseno != 0){
LOGIF(LE, (skygw_log_write_flush(LOGFILE_ERROR,"Error: Failed to set socket options. Error %d: %s",syseno,strerror(syseno))));
LOGIF(LE, (skygw_log_write_flush(LOGFILE_ERROR,"Error: Failed to set socket options. Error %d: %s",errno,strerror(errno))));
return 0;
}
// set NONBLOCKING mode