Fix CID 280081: ENC_NULL can't be used as an array index into ciphers[], rather
ENC_NULL-0x30 needs to be used. (This could probably use some cleanup...) svn path=/trunk/; revision=52843
This commit is contained in:
parent
ab97b9d50b
commit
2aae7bc4a6
|
@ -2242,7 +2242,7 @@ ssl_create_decoder(SslCipherSuite *cipher_suite, gint compression,
|
|||
}
|
||||
if (ciph == 0) {
|
||||
ssl_debug_printf("ssl_create_decoder can't find cipher %s\n",
|
||||
ciphers[cipher_suite->enc > ENC_NULL ? ENC_NULL : (cipher_suite->enc-0x30)]);
|
||||
ciphers[cipher_suite->enc > ENC_NULL ? ENC_NULL-0x30 : (cipher_suite->enc-0x30)]);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue