summaryrefslogtreecommitdiffstats
path: root/ssl/d1_pkt.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-09-14 17:57:03 +0000
committerAndy Polyakov <appro@openssl.org>2008-09-14 17:57:03 +0000
commit54d6ddba697bccc838203a7e751f310761b9ef33 (patch)
treeb80f715c1be3f030252a9edfed9d164dab99782e /ssl/d1_pkt.c
parent1af12ff1d1cf37a6460956664acb0cdcab3cddbb (diff)
dtls1_write_bytes consumers expect amount of bytes written per call, not
overall [from HEAD]. PR: 1604
Diffstat (limited to 'ssl/d1_pkt.c')
-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 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)