summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-09-14 19:56:15 +0200
committerAndy Polyakov <appro@openssl.org>2008-09-14 19:56:15 +0200
commit51ec776b7decdd62ac9448ce76c61e3421adf0b1 (patch)
tree2160b2a6d5cd87bf2c5748c1d78db9ca383f9816 /ssl
parentFix SSL state transitions. (diff)
downloadopenssl-51ec776b7decdd62ac9448ce76c61e3421adf0b1.tar.xz
openssl-51ec776b7decdd62ac9448ce76c61e3421adf0b1.zip
dtls1_write_bytes consumers expect amount of bytes written per call, not
overall. PR: 1604
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_pkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c
index eb3af232c7..0321ee7f15 100644
--- a/ssl/d1_pkt.c
+++ b/ssl/d1_pkt.c
@@ -1294,7 +1294,7 @@ int dtls1_write_bytes(SSL *s, int type, const void *buf_, int len)
else
s->s3->wnum += i;
- return tot + i;
+ return i;
}
int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment)