diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_both.c | 3 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/d1_both.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c index 3674ed6046..6625055645 100644 --- a/src/lib/libssl/d1_both.c +++ b/src/lib/libssl/d1_both.c | |||
| @@ -743,6 +743,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) | |||
| 743 | int i, al; | 743 | int i, al; |
| 744 | struct hm_header_st msg_hdr; | 744 | struct hm_header_st msg_hdr; |
| 745 | 745 | ||
| 746 | again: | ||
| 746 | /* see if we have the required fragment already */ | 747 | /* see if we have the required fragment already */ |
| 747 | if ((frag_len = dtls1_retrieve_buffered_fragment(s, max, ok)) || *ok) { | 748 | if ((frag_len = dtls1_retrieve_buffered_fragment(s, max, ok)) || *ok) { |
| 748 | if (*ok) | 749 | if (*ok) |
| @@ -801,7 +802,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) | |||
| 801 | s->msg_callback_arg); | 802 | s->msg_callback_arg); |
| 802 | 803 | ||
| 803 | s->init_num = 0; | 804 | s->init_num = 0; |
| 804 | return dtls1_get_message_fragment(s, st1, stn, max, ok); | 805 | goto again; |
| 805 | } | 806 | } |
| 806 | else /* Incorrectly formated Hello request */ | 807 | else /* Incorrectly formated Hello request */ |
| 807 | { | 808 | { |
diff --git a/src/lib/libssl/src/ssl/d1_both.c b/src/lib/libssl/src/ssl/d1_both.c index 3674ed6046..6625055645 100644 --- a/src/lib/libssl/src/ssl/d1_both.c +++ b/src/lib/libssl/src/ssl/d1_both.c | |||
| @@ -743,6 +743,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) | |||
| 743 | int i, al; | 743 | int i, al; |
| 744 | struct hm_header_st msg_hdr; | 744 | struct hm_header_st msg_hdr; |
| 745 | 745 | ||
| 746 | again: | ||
| 746 | /* see if we have the required fragment already */ | 747 | /* see if we have the required fragment already */ |
| 747 | if ((frag_len = dtls1_retrieve_buffered_fragment(s, max, ok)) || *ok) { | 748 | if ((frag_len = dtls1_retrieve_buffered_fragment(s, max, ok)) || *ok) { |
| 748 | if (*ok) | 749 | if (*ok) |
| @@ -801,7 +802,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) | |||
| 801 | s->msg_callback_arg); | 802 | s->msg_callback_arg); |
| 802 | 803 | ||
| 803 | s->init_num = 0; | 804 | s->init_num = 0; |
| 804 | return dtls1_get_message_fragment(s, st1, stn, max, ok); | 805 | goto again; |
| 805 | } | 806 | } |
| 806 | else /* Incorrectly formated Hello request */ | 807 | else /* Incorrectly formated Hello request */ |
| 807 | { | 808 | { |
