From 54d6ddba697bccc838203a7e751f310761b9ef33 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 14 Sep 2008 17:57:03 +0000 Subject: [PATCH] dtls1_write_bytes consumers expect amount of bytes written per call, not overall [from HEAD]. PR: 1604 --- ssl/d1_pkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1