diff options
author | Kevin Jacobs <kjacobs@mozilla.com> | 2020-08-24 18:04:59 +0000 |
---|---|---|
committer | Kevin Jacobs <kjacobs@mozilla.com> | 2020-08-24 18:04:59 +0000 |
commit | 58f252879f0f9cf80a03bccc96dec35016afbf0a (patch) | |
tree | 82e1750d20986377c17c619fd05cb18c6559dbf2 /lib/ssl/sslnonce.c | |
parent | f543d10dd25cfb13b7d1088c401f100906a0f1b8 (diff) | |
download | nss-hg-58f252879f0f9cf80a03bccc96dec35016afbf0a.tar.gz |
Bug 1653641 - Cleanup inaccurate DTLS comments, code review fixes. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D84255
Diffstat (limited to 'lib/ssl/sslnonce.c')
-rw-r--r-- | lib/ssl/sslnonce.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/sslnonce.c b/lib/ssl/sslnonce.c index 3c30d3aa0..3daab4b75 100644 --- a/lib/ssl/sslnonce.c +++ b/lib/ssl/sslnonce.c @@ -1123,12 +1123,13 @@ ssl_CacheSessionID(sslSocket *ss) { sslSecurityInfo *sec = &ss->sec; PORT_Assert(sec); + PORT_Assert(sec->ci.sid->cached == never_cached); if (sec->ci.sid && !sec->ci.sid->u.ssl3.keys.resumable) { return; } - if (!ss->sec.isServer && ss->resumptionTokenCallback) { + if (!sec->isServer && ss->resumptionTokenCallback) { ssl_CacheExternalToken(ss); return; } |