I missed one.
This commit is contained in:
parent
f85c9904c6
commit
e3a9164073
1 changed files with 1 additions and 1 deletions
|
@ -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) ?
|
||||||
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));
|
(++count < MAX_SESSION_ID_ATTEMPTS));
|
||||||
if(count >= MAX_SESSION_ID_ATTEMPTS)
|
if(count >= MAX_SESSION_ID_ATTEMPTS)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue