From e73f740c72d9b19134bc91c4bb1d55a39664fe8b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 8 Apr 2003 20:20:04 +0000 Subject: Make sure host->h_name is not an empty string too? Apparently for one user 2003-04-08 Jeffrey Stedfast * 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 --- camel/ChangeLog | 5 +++++ camel/providers/smtp/camel-smtp-transport.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + * 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 -- cgit v1.2.3