diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-11-02 05:57:29 +0100 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-11-02 05:57:29 +0100 |
commit | 900b67fe2304c1092a9016438c73ef6603522ca0 (patch) | |
tree | a52b52ef9e89a71f4c3115e10ef67a21a77e355e /smtpd/to.c | |
parent | remove prototype (diff) | |
download | OpenSMTPD-900b67fe2304c1092a9016438c73ef6603522ca0.tar.xz OpenSMTPD-900b67fe2304c1092a9016438c73ef6603522ca0.zip |
fix inet6 for systems with a broken inet_pton
Diffstat (limited to 'smtpd/to.c')
-rw-r--r-- | smtpd/to.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -317,7 +317,7 @@ text_to_netaddr(struct netaddr *netaddr, const char *s) if (bits == -1) { if (errno != EAFNOSUPPORT) return 0; - bits = broken_inet_net_pton_ipv6(s, &ssin6.sin6_addr, + bits = broken_inet_net_pton_ipv6(buf, &ssin6.sin6_addr, sizeof(struct in6_addr)); if (bits == -1) return 0; |