fix cipherSuite0 byte in sniffer, so ECC is recognised correctly.

This commit is contained in:
Jasper Spaans
2013-05-28 10:56:13 +02:00
parent 9753e46721
commit 2b59554245

View File

@ -1198,7 +1198,9 @@ static int ProcessServerHello(const byte* input, int* sslBytes,
*sslBytes -= b;
/* cipher suite */
(void)*input++; /* eat first byte, always 0 */
b = *input++; /* first byte, ECC or not */
session->sslServer->options.cipherSuite0 = b;
session->sslClient->options.cipherSuite0 = b;
b = *input++;
session->sslServer->options.cipherSuite = b;
session->sslClient->options.cipherSuite = b;