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 93d1461a32678c9511cc70f85b6a9c60288ee3e2..ae8b981eee19a1a014eb44856227b254217f9dbb 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);
        }