Fix use after free.

This commit is contained in:
Ben Laurie 2014-04-23 07:24:03 +01:00
parent 4ba5e63bfd
commit 94d1f4b0f3

View file

@ -1334,7 +1334,7 @@ start:
{
s->rstate=SSL_ST_READ_HEADER;
rr->off=0;
if (s->mode & SSL_MODE_RELEASE_BUFFERS)
if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0)
ssl3_release_read_buffer(s);
}
}