Commit 51836939 authored by Marko Mikulicic's avatar Marko Mikulicic

Fix ssl close with polarssl

parent e47506f9
...@@ -864,7 +864,17 @@ static int ns_is_error(int n) { ...@@ -864,7 +864,17 @@ static int ns_is_error(int n) {
#ifdef _WIN32 #ifdef _WIN32
&& WSAGetLastError() != WSAEINTR && WSAGetLastError() != WSAEWOULDBLOCK && WSAGetLastError() != WSAEINTR && WSAGetLastError() != WSAEWOULDBLOCK
#endif #endif
); )
#ifdef NS_ENABLE_SSL
/*
* OpenSSL can return an error when the peer is closing the socket.
* We don't encounter this error with openssl actually, but it's returned
* by our polarssl <-> openssl wrapper who tries to speak the openssl API
* as we understood it.
*/
|| n == SSL_AD_CLOSE_NOTIFY
#endif
;
} }
void ns_sock_to_str(sock_t sock, char *buf, size_t len, int flags) { void ns_sock_to_str(sock_t sock, char *buf, size_t len, int flags) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment