aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-09 04:20:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-09 04:20:04 +0800
commite73f740c72d9b19134bc91c4bb1d55a39664fe8b (patch)
treebd0b61bb88f21cdfeca36a9a460757d83551c2dd /camel
parent55c6c41bd4d0f485344963fac72a62c181e91af6 (diff)
downloadgsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar.gz
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar.bz2
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar.lz
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar.xz
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.tar.zst
gsoc2013-evolution-e73f740c72d9b19134bc91c4bb1d55a39664fe8b.zip
Make sure host->h_name is not an empty string too? Apparently for one user
2003-04-08 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): Make sure host->h_name is not an empty string too? Apparently for one user his resolved hostname is "". Go figure. Probably a broken system, but easy enough to work around. svn path=/trunk/; revision=20768
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 12aac0ffc9..02984b4d3b 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,10 @@
2003-04-08 Jeffrey Stedfast <fejj@ximian.com>
+ * providers/smtp/camel-smtp-transport.c (smtp_helo): Make sure
+ host->h_name is not an empty string too? Apparently for one user
+ his resolved hostname is "". Go figure. Probably a broken system,
+ but easy enough to work around.
+
* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): If
store->engine->line is NULL, use _("Unknown error") as the error
string instead.
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index 86caa635dc..9aaf4ded96 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -889,7 +889,7 @@ smtp_helo (CamelSmtpTransport *transport, CamelException *ex)
camel_exception_clear (&err);
- if (host && host->h_name) {
+ if (host && host->h_name && *host->h_name) {
name = g_strdup (host->h_name);
} else {
#ifdef ENABLE_IPv6