diff options
author | rpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-20 15:16:46 +0000 |
---|---|---|
committer | rpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-20 15:16:46 +0000 |
commit | 11e2b71b02c27a7465bf184df0f352576f6cac34 (patch) | |
tree | 1643c8cef3b146789cb3e8ea3e38ab3d8c97b52d /test/testrand.c | |
parent | 89f0b7009ab81f979febd7b3881cbd67b225d35f (diff) | |
download | libapr-11e2b71b02c27a7465bf184df0f352576f6cac34.tar.gz |
Merge r983618 from trunk:
* network_io/unix/sockets.c (apr_socket_connect): Copy the remote
address by value rather than by reference. This ensures that the
sockaddr object returned by apr_socket_addr_get is allocated from
the same pool as the socket object itself, as apr_socket_accept
does; avoiding any potential lifetime mismatches.
* test/testsock.c (test_get_addr): Enhance test case to cover this.
PR: 49713
Submitted by: jorton
Reviewed by: rpluem
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@987540 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testrand.c')
0 files changed, 0 insertions, 0 deletions