Fixed misusage of tree in soecket setsockopt