bug in sockopt() error handling in accept