Gitweb:
http://git.exim.org/exim.git/commitdiff/4c115efc45a7e01c36792fd99d7438e6f7352fff
Commit: 4c115efc45a7e01c36792fd99d7438e6f7352fff
Parent: 740f36d42bb3f61fdbaf53a68380a9a96096c229
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Mar 26 13:59:12 2015 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Mar 26 13:59:12 2015 +0000
Fix non-ipv6 socks compile
---
src/src/transports/smtp_socks.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/src/transports/smtp_socks.c b/src/src/transports/smtp_socks.c
index cf9f73b..77f71ba 100644
--- a/src/src/transports/smtp_socks.c
+++ b/src/src/transports/smtp_socks.c
@@ -229,6 +229,7 @@ while ((proxy_spec = string_nextinlist(&proxy_list, &sep, NULL, 0)))
/* send connect (ipver, ipaddr, port) */
buf[0] = 5; buf[1] = 1; buf[2] = 0; buf[3] = host_af == AF_INET6 ? 4 : 1;
+#if HAVE_IPV6
if (host_af == AF_INET6)
{
memcpy(buf+4, &sin.v6.sin6_addr, sizeof(sin.v6.sin6_addr));
@@ -237,6 +238,7 @@ while ((proxy_spec = string_nextinlist(&proxy_list, &sep, NULL, 0)))
size = 4+sizeof(sin.v6.sin6_addr)+sizeof(sin.v6.sin6_port);
}
else
+#endif
{
memcpy(buf+4, &sin.v4.sin_addr.s_addr, sizeof(sin.v4.sin_addr.s_addr));
memcpy(buf+4+sizeof(sin.v4.sin_addr.s_addr),