diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-03-03 16:11:38 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-03-03 16:11:38 +0100 |
commit | cf72a0f7c35ee791d5b4a81ef799d006e1b16bda (patch) | |
tree | 2d4029c928a844b9b8c335c3b6c0730053f1e694 /libvncserver/httpd.c | |
parent | f5b96e57bfaa05d21efc98f892a1b2b109b17253 (diff) | |
download | libtdevnc-cf72a0f7c35ee791d5b4a81ef799d006e1b16bda.tar.gz libtdevnc-cf72a0f7c35ee791d5b4a81ef799d006e1b16bda.zip |
Call WSAGetLastError() everywhere errno is read after a Winsock call.
Winsock does NOT update errno for us, we have fetch the last error
manually using WSAGetLastError().
Diffstat (limited to 'libvncserver/httpd.c')
-rwxr-xr-x | libvncserver/httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c index 320e6d2..ad2a51b 100755 --- a/libvncserver/httpd.c +++ b/libvncserver/httpd.c @@ -269,6 +269,9 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen) if (got == 0) { rfbErr("httpd: premature connection close\n"); } else { +#ifdef WIN32 + errno=WSAGetLastError(); +#endif if (errno == EAGAIN) { return; } |