summaryrefslogtreecommitdiffstats
path: root/CTestConfig.cmake
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2016-08-11 20:24:54 +0530
committerAndreas Schneider <asn@samba.org>2016-08-12 08:30:40 +0200
commit3eee8df6964fdca0d22967a5c8d65f934e935f34 (patch)
tree8ccceda1830c027476c003b2db95344d28da576d /CTestConfig.cmake
parent92788865b636237f761ebd57d02fad0f3c9e03cd (diff)
downloadsocket_wrapper-3eee8df6964fdca0d22967a5c8d65f934e935f34.tar.gz
socket_wrapper-3eee8df6964fdca0d22967a5c8d65f934e935f34.tar.xz
socket_wrapper-3eee8df6964fdca0d22967a5c8d65f934e935f34.zip
swrap: Delay addition of child socket_info_fd into socket_info list
In swrap_accept() we used to add new child socket_info_fd[child_fi] into newly created child socket_info struture[child_si] without considering the fact that we may return early in case of errors from subsequent calls to libc_getsockname() and sockaddr_convert_from_un() during which we free child_fi and child_si and return. So it is better to delay the addition of child_fi into child_si->fds until child_si is completely initialized. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'CTestConfig.cmake')
0 files changed, 0 insertions, 0 deletions