• A
    Fix return code for truncated DTLS fragment. · b74d1d26
    Adam Langley 提交于
    Previously, a truncated DTLS fragment in
    |dtls1_process_out_of_seq_message| would cause *ok to be cleared, but
    the return value would still be the number of bytes read. This would
    cause |dtls1_get_message| not to consider it an error and it would
    continue processing as normal until the calling function noticed that
    *ok was zero.
    
    I can't see an exploit here because |dtls1_get_message| uses
    |s->init_num| as the length, which will always be zero from what I can
    see.
    Reviewed-by: NMatt Caswell <matt@openssl.org>
    Reviewed-by: NEmilia Käsper <emilia@openssl.org>
    b74d1d26
d1_both.c 41.9 KB