diff options
author | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-15 02:21:55 +0000 |
---|---|---|
committer | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-15 02:21:55 +0000 |
commit | ff779bd7233b4c58731696c70443b3c8ca9f7fe0 (patch) | |
tree | 75269f693292d4134fb86e73b56161341e22c628 /network_io | |
parent | c476a4536353f28b0b1b57c72c1ecba0fd7922f3 (diff) | |
download | libapr-ff779bd7233b4c58731696c70443b3c8ca9f7fe0.tar.gz |
Set the hostnames on all apr_sockaddr_t's returned.
Since we're at the same lifetime as the prev_sa, it's safe to just point
to that one as well.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/unix/sockaddr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c index 8ce8a8fe7..7e111db18 100644 --- a/network_io/unix/sockaddr.c +++ b/network_io/unix/sockaddr.c @@ -437,6 +437,7 @@ static apr_status_t call_resolver(apr_sockaddr_t **sa, *sa = new_sa; } else { + new_sa->hostname = prev_sa->hostname; prev_sa->next = new_sa; } @@ -569,6 +570,7 @@ static apr_status_t find_addresses(apr_sockaddr_t **sa, *sa = new_sa; } else { + new_sa->hostname = prev_sa->hostname; prev_sa->next = new_sa; } |