Check for ENOMEM when appending to the connection list.