[packages/openssl102: 343/432] - wrong patch...

adwol adwol at pld-linux.org
Sat Sep 29 01:30:23 CEST 2018


commit 56764bc673df2a311148cba5eaded505f146e84f
Author: Andrzej Zawadzki <zawadaa at pld-linux.org>
Date:   Mon Apr 28 14:07:27 2014 +0200

    - wrong patch...

 openssl-fix_use_after_free.patch | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/openssl-fix_use_after_free.patch b/openssl-fix_use_after_free.patch
index f00d291..af1b5ef 100644
--- a/openssl-fix_use_after_free.patch
+++ b/openssl-fix_use_after_free.patch
@@ -1,15 +1,13 @@
 diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
-index b9e45c7..30b74c2 100644
+index b9e45c7..d601a18 100644
 --- a/ssl/s3_pkt.c
 +++ b/ssl/s3_pkt.c
-@@ -1335,7 +1335,8 @@ start:
+@@ -1334,7 +1334,7 @@ start:
+ 				{
  				s->rstate=SSL_ST_READ_HEADER;
  				rr->off=0;
- 				if (s->mode & SSL_MODE_RELEASE_BUFFERS)
--					ssl3_release_read_buffer(s);
-+					if (s->s3->rbuf.left == 0) /* no read-ahead left? */
-+						ssl3_release_read_buffer(s);
+-				if (s->mode & SSL_MODE_RELEASE_BUFFERS)
++				if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0)
+ 					ssl3_release_read_buffer(s);
  				}
  			}
- 		return(n);
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssl102.git/commitdiff/9fc1b1b87b259e8a327c99835865e91a391efc9e



More information about the pld-cvs-commit mailing list