dtls1_write_bytes consumers expect amount of bytes written per call, not

overall.
PR: 1604
This commit is contained in:
Andy Polyakov 2008-09-14 17:56:15 +00:00
parent e65bcbcef0
commit 51ec776b7d

View File

@ -1294,7 +1294,7 @@ int dtls1_write_bytes(SSL *s, int type, const void *buf_, int len)
else else
s->s3->wnum += i; 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) int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment)