From: Andy Polyakov Date: Sun, 14 Sep 2008 17:56:15 +0000 (+0000) Subject: dtls1_write_bytes consumers expect amount of bytes written per call, not X-Git-Tag: OpenSSL_0_9_8k^2~253 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51ec776b7decdd62ac9448ce76c61e3421adf0b1;p=oweals%2Fopenssl.git dtls1_write_bytes consumers expect amount of bytes written per call, not overall. PR: 1604 --- 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)