summaryrefslogtreecommitdiff
path: root/src/tests.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-17 15:43:27 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-17 15:43:27 +0000
commit15d3ba20b549c9b1a8f8da1e00559161b6cd6b6f (patch)
tree48720164d379bc1f829b16b030b767a665d55782 /src/tests.c
parentc103ed6bd8e28bb595dc68535ee2abbc3aa5712b (diff)
downloadgnutls-15d3ba20b549c9b1a8f8da1e00559161b6cd6b6f.tar.gz
*** empty log message ***
Diffstat (limited to 'src/tests.c')
-rw-r--r--src/tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests.c b/src/tests.c
index ea9c604973..908fecf6f1 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -229,7 +229,6 @@ int ret;
}
int test_dhe_bits( gnutls_session session) {
-int ret;
if (dh_bits == 0) return GFAILED;
@@ -294,8 +293,9 @@ int old, secs = 6;
#ifndef _WIN32
siginterrupt( SIGALRM, old);
#else
- /* we cannot distinguish timeouts */
- alrm = 1;
+ if (WSAGetLastError()==WSAETIMEDOUT ||
+ WSAGetLastError() == WSAECONNABORTED)
+ alrm = 1;
#endif
if (ret==0) return SUCCEED;