From d13ff0ee23456df20831427cf7a92f7d6de80f31 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 12 Jun 2014 21:19:56 +0200 Subject: EClientSelector: Do not check connection for empty or "localhost" host Related to bug 731585 --- e-util/e-client-selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-util/e-client-selector.c b/e-util/e-client-selector.c index 01ff2d432d..740d456ed2 100644 --- a/e-util/e-client-selector.c +++ b/e-util/e-client-selector.c @@ -397,7 +397,7 @@ client_selector_constructed (GObject *object) /* XXX GNetworkAddress will happily take a NULL host * but then crash while enumerating the address, * so watch out for that. */ - if (host == NULL) + if (host == NULL || !*host || g_ascii_strcasecmp (host, "localhost") == 0) g_clear_object (&socket_connectable); if (socket_connectable != NULL) { -- cgit v1.2.3