diff options
author | Not Zed <NotZed@Ximian.com> | 2004-11-22 11:19:47 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-11-22 11:19:47 +0800 |
commit | b64055ed673da750908950bb183000f4b5b2820c (patch) | |
tree | 19970d988081a098c3e830457b9deb658ea84bf7 /camel/camel-service.c | |
parent | 3c80fbd004c256274bf6856c19cb119226415a89 (diff) | |
download | gsoc2013-evolution-b64055ed673da750908950bb183000f4b5b2820c.tar.gz gsoc2013-evolution-b64055ed673da750908950bb183000f4b5b2820c.tar.zst gsoc2013-evolution-b64055ed673da750908950bb183000f4b5b2820c.zip |
** See bug #69109.
2004-11-10 Not Zed <NotZed@Ximian.com>
** See bug #69109.
* camel-service.c (cs_getnameinfo): honour the NI_NAMEREQD flag.
* providers/smtp/camel-smtp-transport.c (smtp_helo): change the
nameinfo flags a bit so we know when we got a numeric name and
need to wrap it in [].
svn path=/trunk/; revision=27959
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r-- | camel/camel-service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c index b916d5c05a..81bb9c85e6 100644 --- a/camel/camel-service.c +++ b/camel/camel-service.c @@ -969,13 +969,15 @@ cs_getnameinfo(void *data) if (msg->host) { g_free(msg->host); + msg->host = NULL; if (msg->result == 0 && h.h_name && h.h_name[0]) { msg->host = g_strdup(h.h_name); - } else { + } else if ((msg->flags & NI_NAMEREQD) == 0) { unsigned char *in = (unsigned char *)&sin->sin_addr; /* sin_addr is always network order which is big-endian */ msg->host = g_strdup_printf("%u.%u.%u.%u", in[0], in[1], in[2], in[3]); + msg->result = 0; } } |