diff options
| author | Florian Westphal <fw@strlen.de> | 2011-04-25 18:00:10 +0200 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2011-04-25 18:00:10 +0200 |
| commit | e4e1595bffdb6c43cd163ae576ee9715b859e494 (patch) | |
| tree | 74aa2bebd48254416067e5c974713acb07f871c0 /src/ipaddr | |
| parent | 67a9d994e33e3adbb32019a199678e84537a040c (diff) | |
| download | ngircd-e4e1595bffdb6c43cd163ae576ee9715b859e494.tar.gz ngircd-e4e1595bffdb6c43cd163ae576ee9715b859e494.zip | |
resolve: fix reverse lookups of client connections with ConnectIPv6=no
We re-use the same helper function for both forward lookups (when we want to connect to a peer server) and for validation of reverse loopups (where we make a lookup on the hostname returned by a reverse lookup on the IP address that connected). Problem: When ConnectIPv6=no, the forward lookup helper sets the adderss family to AF_INET, and, if out client connected via ipv6, we fail to validate the result. Thus move the ConnectIPvX check out of the helper.
Diffstat (limited to 'src/ipaddr')
0 files changed, 0 insertions, 0 deletions