summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-04-24 06:02:58 +0000
committerbeck <beck@openbsd.org>2014-04-24 06:02:58 +0000
commit3d3ea1027d2c023360d7c66ea1775b040c65fc96 (patch)
tree2aa086268b47f72c24f3330d0216f7c951ebf4b7 /lib/libssl/src
parentremove redundant asign. from David Hill (diff)
downloadwireguard-openbsd-3d3ea1027d2c023360d7c66ea1775b040c65fc96.tar.xz
wireguard-openbsd-3d3ea1027d2c023360d7c66ea1775b040c65fc96.zip
A fantastic way to make a large unsigned number is to assign
a small signed one to it.. Some people on OpenSSL's list noticed - http://marc.info/?l=openssl-dev&m=139809485525663&w=2 This should fix that, and make sure we don't try to write out insane amounts of stuff. ok miod@ tedu@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/ssl/s3_pkt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libssl/src/ssl/s3_pkt.c b/lib/libssl/src/ssl/s3_pkt.c
index 5ef25a4059f..2a88b148521 100644
--- a/lib/libssl/src/ssl/s3_pkt.c
+++ b/lib/libssl/src/ssl/s3_pkt.c
@@ -564,6 +564,8 @@ ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
}
}
+ if (len < tot)
+ len = tot;
n = (len - tot);
for (;;) {
if (n > s->max_send_fragment)