projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85615e3
)
Avoid unnecessary fragmentation.
author
Michael Tuexen
<tuexen@fh-muenster.de>
Mon, 18 Mar 2013 14:30:38 +0000
(14:30 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 18 Mar 2013 14:33:09 +0000
(14:33 +0000)
(cherry picked from commit
80ccc66d7eedb2d06050130c77c482ae1584199a
)
ssl/d1_both.c
patch
|
blob
|
history
diff --git
a/ssl/d1_both.c
b/ssl/d1_both.c
index de8bab873f2cf114d0d1b3e49acfa09bb9d0e4f7..65ec0018ae64baa175f37ece77de8f5883ff516d 100644
(file)
--- a/
ssl/d1_both.c
+++ b/
ssl/d1_both.c
@@
-313,9
+313,10
@@
int dtls1_do_write(SSL *s, int type)
s->init_off -= DTLS1_HM_HEADER_LENGTH;
s->init_num += DTLS1_HM_HEADER_LENGTH;
- /* write atleast DTLS1_HM_HEADER_LENGTH bytes */
- if ( len <= DTLS1_HM_HEADER_LENGTH)
- len += DTLS1_HM_HEADER_LENGTH;
+ if ( s->init_num > curr_mtu)
+ len = curr_mtu;
+ else
+ len = s->init_num;
}
dtls1_fix_message_header(s, frag_off,