You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
579 B
21 lines
579 B
From: Ben Laurie <ben@links.org> |
|
Date: Wed, 23 Apr 2014 06:24:03 +0000 (+0100) |
|
Subject: Fix use after free. |
|
X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=94d1f4b |
|
|
|
Fix use after free. |
|
--- |
|
|
|
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c |
|
index b9e45c7..d601a18 100644 |
|
--- a/ssl/s3_pkt.c |
|
+++ b/ssl/s3_pkt.c |
|
@@ -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); |
|
} |
|
}
|
|
|