diff options
Diffstat (limited to 'lib/vtls/nss.c')
-rw-r--r-- | lib/vtls/nss.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c index cf657895f..c9cc2fd09 100644 --- a/lib/vtls/nss.c +++ b/lib/vtls/nss.c @@ -2250,10 +2250,11 @@ static CURLcode nss_connect_common(struct Curl_easy *data, case CURLE_OK: break; case CURLE_AGAIN: + /* CURLE_AGAIN in non-blocking mode is not an error */ if(!blocking) - /* CURLE_AGAIN in non-blocking mode is not an error */ return CURLE_OK; - /* FALLTHROUGH */ + else + return result; default: return result; } |