Skip to content

Commit

Permalink
Bug 1308847 - coverity check ssl3_config_match_init return value, r=mt
Browse files Browse the repository at this point in the history
Differential Revision: https://nss-dev.phacility.com/D75

--HG--
extra : rebase_source : 0a6d8e52b20c9823c01ac904cf08317cc76db0c5
extra : amend_source : 543e64efe268f8eb2e82ca7f2354dbd30ce60df4
  • Loading branch information
franziskuskiefer committed Oct 9, 2016
1 parent 243c3ba commit 2e35aab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ssl/ssl3con.c
Expand Up @@ -6625,7 +6625,12 @@ ssl3_HandleServerHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length)
if (temp < 0) {
goto loser; /* alert has been sent */
}
ssl3_config_match_init(ss);
i = ssl3_config_match_init(ss);
PORT_Assert(i > 0);
if (i <= 0) {
errCode = PORT_GetError();
goto loser;
}
for (i = 0; i < ssl_V3_SUITES_IMPLEMENTED; i++) {
ssl3CipherSuiteCfg *suite = &ss->cipherSuites[i];
if (temp == suite->cipher_suite) {
Expand Down

0 comments on commit 2e35aab

Please sign in to comment.