summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Sharpe <rsharpe@samba.org>2016-05-11 17:03:46 -0700
committerAndreas Schneider <asn@samba.org>2016-05-17 11:44:04 +0200
commitec18c955e13ea2a294339e4c9ee977a769fbe903 (patch)
treea110cecfc18f6318eccd939064bbf990b1d2df39 /tests
parent395dc418d996d343cfaeb03be5b720c9e52d1d46 (diff)
downloadsocket_wrapper-ec18c955e13ea2a294339e4c9ee977a769fbe903.tar.gz
socket_wrapper-ec18c955e13ea2a294339e4c9ee977a769fbe903.tar.xz
socket_wrapper-ec18c955e13ea2a294339e4c9ee977a769fbe903.zip
swrap: Fix sendto() with connected sockets
Let the socket wrapper code work with the net ads dns gethostbyname etc code (lib/addn/dnssock.c) which uses connect on a UDP socket before then using sendto and recvfrom. Here, we make sure we don't error out in that case. Tested by creating a test case for this and then observing that: 1. The test case works when the socket wrapper lib is not being used ie, run the test directly after defining some SHELL variables. 2. That the test case fails when run with the un modified socket wrapper code. 3. Apply this fix and observe that it runs correctly. Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Richard Sharpe <rsharpe@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions