int x;
CONNECTION *conn;
CONNECTION *mutt_socket_select_connection (char *host, int port, int flags){  int x;  if (flags != M_NEW_SOCKET)  {    for (x = 0; x < NumConnections; x++)    {      if (!strcmp (host, Connections[x].server) && 	  (port == Connections[x].port))	return &Connections[x];    }  }  if (NumConnections == 0)  {    NumConnections = 1;    Connections = (CONNECTION *) safe_malloc (sizeof (CONNECTION));  }  else  {    NumConnections++;    safe_realloc ((void *)&Connections, sizeof (CONNECTION) * NumConnections);  }  Connections[NumConnections - 1].bufpos = 0;  Connections[NumConnections - 1].available = 0;  Connections[NumConnections - 1].uses = 0;  Connections[NumConnections - 1].server = safe_strdup (host);  Connections[NumConnections - 1].port = port;  return &Connections[NumConnections - 1];}