X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_lib.c;h=f5219c22d128944f34d3217e76f01cb8141aa245;hp=accef0c0ce3d28179b596f2651ec98089b9cb90c;hb=e440f51395f10e307f720213bd75393e446024a3;hpb=532f95783e2bff4d7f4e8086297ed8e0b25561f7 diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index accef0c0ce..f5219c22d1 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -5352,7 +5352,10 @@ int SSL_stateless(SSL *s) if (ret > 0 && s->ext.cookieok) return 1; - return 0; + if (s->hello_retry_request == SSL_HRR_PENDING && !ossl_statem_in_error(s)) + return 0; + + return -1; } void SSL_force_post_handshake_auth(SSL *ssl)