Skip to content

Commit

Permalink
Bug 753136 - Fixing ssl3_HandleSupportedPointFormatsXtn, r=ekr
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : bea42936ae26cd59c3967dbe5080c93f9600df0a
extra : histedit_source : 813f164605c45563320e0d99b7ad497e7e589a48
  • Loading branch information
martinthomson committed Mar 9, 2015
1 parent e61b3a0 commit 782aec3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/ssl/ssl3ecc.c
Expand Up @@ -1185,8 +1185,7 @@ ssl3_HandleSupportedPointFormatsXtn(sslSocket *ss, PRUint16 ex_type,

if (data->len < 2 || data->len > 255 || !data->data ||
data->len != (unsigned int)data->data[0] + 1) {
/* malformed */
goto loser;
return ssl3_DecodeError(ss);
}
for (i = data->len; --i > 0; ) {
if (data->data[i] == 0) {
Expand All @@ -1197,10 +1196,10 @@ ssl3_HandleSupportedPointFormatsXtn(sslSocket *ss, PRUint16 ex_type,
return rv;
}
}
loser:

/* evil client doesn't support uncompressed */
ssl3_DisableECCSuites(ss, ecSuites);
return SECFailure;
return SECSuccess;
}


Expand Down

0 comments on commit 782aec3

Please sign in to comment.