In ssl3_read_n, set rwstate to SSL_NOTHING when the requested
authorBodo Möller <bodo@openssl.org>
Sun, 16 Jan 2000 14:21:00 +0000 (14:21 +0000)
committerBodo Möller <bodo@openssl.org>
Sun, 16 Jan 2000 14:21:00 +0000 (14:21 +0000)
number of bytes could be read.

ssl/s3_pkt.c

index 93d1461..ae8b981 100644 (file)
@@ -214,6 +214,7 @@ static int ssl3_read_n(SSL *s, int n, int max, int extend)
        s->s3->rbuf.offset = off + n;
        s->s3->rbuf.left = newb - n;
        s->packet_length += n;
+       s->rwstate=SSL_NOTHING;
        return(n);
        }