Applying same fix as in dtls1_process_out_of_seq_message. A truncated DTLS fragment...
authorMatt Caswell <matt@openssl.org>
Thu, 24 Jul 2014 22:54:28 +0000 (23:54 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 6 Aug 2014 19:41:23 +0000 (20:41 +0100)
commit3d5dceac430d7b9b273331931d4d2303f5a2256f
tree7cd28b98406fa9f93504ef21e847cba69c1f9e62
parentaad61c0a57a3b6371496034db61675abcdb81811
Applying same fix as in dtls1_process_out_of_seq_message. A truncated DTLS fragment would cause *ok to be clear, but the return value would still be the number of bytes read.

Problem identified by Emilia Käsper, based on previous issue/patch by Adam
Langley.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
ssl/d1_both.c