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:
Jeff Morriss 2013-10-25 14:15:28 +00:00
parent ab97b9d50b
commit 2aae7bc4a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}