Skip to content

Commit

Permalink
When we try to get a group, we need session to be valid
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Feb 12, 2025
1 parent d466672 commit 89f360b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/s3_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3734,7 +3734,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg)
if (SSL_CONNECTION_IS_TLS13(sc) && sc->s3.did_kex)
id = sc->s3.group_id;
else
id = sc->session->kex_group;
id = (sc->session != NULL) ? sc->session->kex_group : NID_undef;
ret = tls1_group_id2nid(id, 1);
break;
}
Expand Down

0 comments on commit 89f360b

Please sign in to comment.