diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-03-26 13:59:12 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-03-26 13:59:12 +0000 |
commit | 4c115efc45a7e01c36792fd99d7438e6f7352fff (patch) | |
tree | e3b7f37fba2de30a8650d4ddc452fad74a8e443a /src | |
parent | 740f36d42bb3f61fdbaf53a68380a9a96096c229 (diff) |
Fix non-ipv6 socks compile
Diffstat (limited to 'src')
-rw-r--r-- | 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 cf9f73ba3..77f71ba36 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), |