Loading ssl/d1_both.c +5 −1 Original line number Diff line number Diff line Loading @@ -307,11 +307,15 @@ int dtls1_do_write(SSL *s, int type) return ret; used_len = DTLS1_RT_HEADER_LENGTH + mac_size + blocksize; if(s->d1->mtu > used_len + DTLS1_HM_HEADER_LENGTH) { curr_mtu = s->d1->mtu - used_len; } else { /* Shouldn't happen */ return -1; } } /* We just checked that s->init_num > 0 so this cast should be safe */ if (((unsigned int)s->init_num) > curr_mtu) Loading Loading
ssl/d1_both.c +5 −1 Original line number Diff line number Diff line Loading @@ -307,11 +307,15 @@ int dtls1_do_write(SSL *s, int type) return ret; used_len = DTLS1_RT_HEADER_LENGTH + mac_size + blocksize; if(s->d1->mtu > used_len + DTLS1_HM_HEADER_LENGTH) { curr_mtu = s->d1->mtu - used_len; } else { /* Shouldn't happen */ return -1; } } /* We just checked that s->init_num > 0 so this cast should be safe */ if (((unsigned int)s->init_num) > curr_mtu) Loading