diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-17 15:43:27 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-17 15:43:27 +0000 |
commit | 15d3ba20b549c9b1a8f8da1e00559161b6cd6b6f (patch) | |
tree | 48720164d379bc1f829b16b030b767a665d55782 /src/tests.c | |
parent | c103ed6bd8e28bb595dc68535ee2abbc3aa5712b (diff) | |
download | gnutls-15d3ba20b549c9b1a8f8da1e00559161b6cd6b6f.tar.gz |
*** empty log message ***
Diffstat (limited to 'src/tests.c')
-rw-r--r-- | src/tests.c | 6 |
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; |