[evolution] EClientSelector: Do not check connection for empty or "localhost" host
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EClientSelector: Do not check connection for empty or "localhost" host
- Date: Thu, 12 Jun 2014 19:21:18 +0000 (UTC)
commit d13ff0ee23456df20831427cf7a92f7d6de80f31
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 12 21:19:56 2014 +0200
EClientSelector: Do not check connection for empty or "localhost" host
Related to bug 731585
e-util/e-client-selector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-client-selector.c b/e-util/e-client-selector.c
index 01ff2d4..740d456 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]