Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Jan 24, 2025
1 parent b74a41d commit cd79a85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rustls/src/client/hs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use crate::error::{Error, PeerIncompatible, PeerMisbehaved};
use crate::hash_hs::HandshakeHashBuffer;
use crate::log::{debug, trace};
use crate::msgs::base::Payload;
use crate::msgs::codec::Codec;
use crate::msgs::enums::{
CertificateType, Compression, ECPointFormat, ExtensionType, PSKKeyExchangeMode,
};
Expand Down Expand Up @@ -132,7 +133,7 @@ where
// If we have a ticket, we use the sessionid as a signal that
// we're doing an abbreviated handshake. See section 3.4 in
// RFC5077.
if !inner.ticket().is_empty() {
if !inner.ticket().0.is_empty() {
inner.session_id = SessionId::random(config.provider.secure_random)?;
}
session_id = Some(inner.session_id);
Expand Down

0 comments on commit cd79a85

Please sign in to comment.