PR: 2457
authorDr. Stephen Henson <steve@openssl.org>
Sun, 3 Apr 2011 15:47:58 +0000 (15:47 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 3 Apr 2011 15:47:58 +0000 (15:47 +0000)
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Reviewed by: steve

Fix DTLS fragment reassembly bug.

ssl/d1_both.c

index 4ce4064cc91d541af2e6186e37af21da046f2a7d..2569bb7d679b8844629a4f44338856c47574b58c 100644 (file)
 #endif
 
 static unsigned char bitmask_start_values[] = {0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80};
-static unsigned char bitmask_end_values[]   = {0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f};
+static unsigned char bitmask_end_values[]   = {0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f};
 
 /* XDTLS:  figure out the right values */
 static unsigned int g_probable_mtu[] = {1500 - 28, 512 - 28, 256 - 28};