redundant error in get/setsockopt()
clean up get/setsockopt(), remove the goto bit