dtls1_write_bytes consumers expect amount of bytes written per call, not
authorAndy Polyakov <appro@openssl.org>
Sun, 14 Sep 2008 17:56:15 +0000 (17:56 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 14 Sep 2008 17:56:15 +0000 (17:56 +0000)
overall.
PR: 1604

ssl/d1_pkt.c

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