Allow null pointer to be passed into recv