aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-06-13 03:19:56 +0800
committerMilan Crha <mcrha@redhat.com>2014-06-13 03:19:56 +0800
commitd13ff0ee23456df20831427cf7a92f7d6de80f31 (patch)
treeba96a6d31e89b0399f35e8a2c6fb8f69e34d6a9b
parent0e9bb570cb209bf7c1dd6df85ae69fbba23963b1 (diff)
downloadgsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar.gz
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar.bz2
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar.lz
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar.xz
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.tar.zst
gsoc2013-evolution-d13ff0ee23456df20831427cf7a92f7d6de80f31.zip
EClientSelector: Do not check connection for empty or "localhost" host
Related to bug 731585
-rw-r--r--e-util/e-client-selector.c2
1 files changed, 1 insertions, 1 deletions
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) {