diff --git a/apps/s_server.c b/apps/s_server.c index 561e3a2358fbbc951c7a6fa55e9e6b4db93da1d4..0907fd971bfdb09be73d4ac842a2ac3601346e32 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1605,7 +1605,7 @@ static int generate_session_id(const SSL *ssl, unsigned char *id, (strlen(session_id_prefix) < *id_len) ? strlen(session_id_prefix) : *id_len); } - while(SSL_CTX_has_matching_session_id(ssl->ctx, id, *id_len) && + while(SSL_has_matching_session_id(ssl, id, *id_len) && (++count < MAX_SESSION_ID_ATTEMPTS)); if(count >= MAX_SESSION_ID_ATTEMPTS) return 0;