struct vpn_connection *vpn_get_connection(
const char *name, const char *host, const char *domain)
{
- if (!name || !host || !domain)
+ if (!name || !host)
return NULL;
GList *iter;
if (g_str_equal(connection->name, name) &&
g_str_equal(connection->host, host) &&
- g_str_equal(connection->domain, domain))
+ (!domain || g_str_equal(connection->domain, domain)))
return connection;
}