Fixed ANDREW's bug in getsocktopt. :)