Fixed a type-o in the ENABLE_IPv6 ifdef section.

2003-02-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-ssl.c (stream_connect): Fixed a type-o in the
	ENABLE_IPv6 ifdef section.

svn path=/trunk/; revision=19954
This commit is contained in:
Jeffrey Stedfast
2003-02-19 23:44:00 +00:00
committed by Jeffrey Stedfast
parent 420926a837
commit a52f657ed8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-19 Jeffrey Stedfast <fejj@ximian.com>
* camel-tcp-stream-ssl.c (stream_connect): Fixed a type-o in the
ENABLE_IPv6 ifdef section.
2003-02-19 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (pipe_message): New filter action that

View File

@ -1004,7 +1004,7 @@ stream_connect (CamelTcpStream *stream, struct hostent *host, int port)
memset ((void *) &netaddr, 0, sizeof (PRNetAddr));
#ifdef ENABLE_IPv6
if (h->addrtype == AF_INET6)
if (host->h_addrtype == AF_INET6)
memcpy (&netaddr.ipv6.ip, host->h_addr, sizeof (netaddr.ipv6.ip));
else
memcpy (&netaddr.inet.ip, host->h_addr, sizeof (netaddr.inet.ip));