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

@ -349,6 +349,7 @@ int n_connect = 0;
}
}
}
close(so);
return n_connect;
}
@ -396,7 +397,7 @@ int syseno = 0;
sizeof(one));
if(syseno != 0){
skygw_log_write_flush(LOGFILE_ERROR,"Error: Failed to set socket options. Error %d: %s",syseno,strerror(syseno));
skygw_log_write_flush(LOGFILE_ERROR,"Error: Failed to set socket options. Error %d: %s",errno,strerror(errno));
return 0;
}
/* set NONBLOCKING mode */