From: Andy Polyakov Date: Sun, 14 Sep 2008 17:57:03 +0000 (+0000) Subject: dtls1_write_bytes consumers expect amount of bytes written per call, not X-Git-Tag: OpenSSL_0_9_8i~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54d6ddba697bccc838203a7e751f310761b9ef33;p=oweals%2Fopenssl.git dtls1_write_bytes consumers expect amount of bytes written per call, not overall [from HEAD]. PR: 1604 --- diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index e206b34e74..b2765ba801 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -1259,7 +1259,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)