Fixed the elusive bug in GetSockOpt