Fix for coverity (check setsockopt in listen.c)