Skip to content

Commit 4c846c7

Browse files
committed
Handle TLSv1.2 record version handshakes (16 03 03). #353
1 parent 4a82fd4 commit 4c846c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goodbyedpi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ int main(int argc, char *argv[]) {
11291129
* But if the packet is more than 2 bytes, check ClientHello byte.
11301130
*/
11311131
if ((packet_dataLen == 2 && memcmp(packet_data, "\x16\x03", 2) == 0) ||
1132-
(packet_dataLen >= 3 && memcmp(packet_data, "\x16\x03\x01", 3) == 0))
1132+
(packet_dataLen >= 3 && ( memcmp(packet_data, "\x16\x03\x01", 3) == 0 || memcmp(packet_data, "\x16\x03\x03", 3) == 0 )))
11331133
{
11341134
if (do_blacklist) {
11351135
sni_ok = extract_sni(packet_data, packet_dataLen,

0 commit comments

Comments
 (0)