Doh! 0 is a valid socket value, how could I forget!