Fix for coverity
Fix for coverity (check return value of setsockopt)