Is it not possible for socket to be a NULL pointer?