]> git.pld-linux.org Git - packages/evolution.git/blob - evolution-ipv6_smtp.patch
- BR: which, gcc-g77
[packages/evolution.git] / evolution-ipv6_smtp.patch
1 2003-09-25  Jeffrey Stedfast  <fejj@ximian.com>
2
3         * providers/smtp/camel-smtp-transport.c (smtp_helo): If the
4         localhost lookup results in a numeric IPv6 host, use the form
5         "[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006.
6
7 Index: providers/smtp/camel-smtp-transport.c
8 ===================================================================
9 RCS file: /cvs/gnome/evolution/camel/providers/smtp/camel-smtp-transport.c,v
10 retrieving revision 1.138
11 diff -u -r1.138 camel-smtp-transport.c
12 --- camel/providers/smtp/camel-smtp-transport.c 16 May 2003 18:47:59 -0000      1.138
13 +++ camel/providers/smtp/camel-smtp-transport.c 25 Sep 2003 14:44:07 -0000
14 @@ -896,8 +896,10 @@
15         } else {
16  #ifdef ENABLE_IPv6
17                 char ip[MAXHOSTNAMELEN + 1];
18 +               const char *proto;
19                 
20 -               name = g_strdup_printf ("[%s]", inet_ntop (af, transport->localaddr->address, ip, MAXHOSTNAMELEN));
21 +               proto = transport->localaddr->family == CAMEL_TCP_ADDRESS_IPv6 ? "IPv6:" : "";
22 +               name = g_strdup_printf ("[%s%s]", proto, inet_ntop (af, transport->localaddr->address, ip, MAXHOSTNAMELEN));
23  #else
24                 /* We *could* use inet_ntoa() here, but it's probably
25                    not worth it since we would have to worry about
This page took 0.052676 seconds and 3 git commands to generate.