diff options
author | Ron Yorston <rmy@pobox.com> | 2020-06-03 15:08:16 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-06-03 15:50:04 +0100 |
commit | 214caad089b620f2b210c0948b1526d64932a256 (patch) | |
tree | 8811139935cfa12bfbfafd9b40c0e22c197bd07b /networking | |
parent | 27c718aa1a4674587925adb543362cb8e60814c4 (diff) | |
download | busybox-w32-214caad089b620f2b210c0948b1526d64932a256.tar.gz busybox-w32-214caad089b620f2b210c0948b1526d64932a256.tar.bz2 busybox-w32-214caad089b620f2b210c0948b1526d64932a256.zip |
win32: fix networking problems
The subprocess that handles incoming connections for httpd didn't
work. It has an accepted connection on stdin and calls getpeername()
to obtain its details, but getpeername() didn't initialise networking.
ssl_client only seems to deal with file descriptors. Expose
init_winsock() again and call it from ssl_client.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ssl_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/ssl_client.c b/networking/ssl_client.c index cd0ee5722..27575a2bf 100644 --- a/networking/ssl_client.c +++ b/networking/ssl_client.c | |||
@@ -64,6 +64,7 @@ int ssl_client_main(int argc UNUSED_PARAM, char **argv) | |||
64 | else { | 64 | else { |
65 | if (!hstr || sscanf(hstr, "%p", &h) != 1) | 65 | if (!hstr || sscanf(hstr, "%p", &h) != 1) |
66 | bb_error_msg_and_die("invalid handle"); | 66 | bb_error_msg_and_die("invalid handle"); |
67 | init_winsock(); | ||
67 | tls->ifd = tls->ofd = _open_osfhandle((intptr_t)h, _O_RDWR|_O_BINARY); | 68 | tls->ifd = tls->ofd = _open_osfhandle((intptr_t)h, _O_RDWR|_O_BINARY); |
68 | } | 69 | } |
69 | #endif | 70 | #endif |