[packages/openssl] - wrong patch...

zawadaa zawadaa at pld-linux.org
Mon Apr 28 14:07:47 CEST 2014


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/openssl.git/commitdiff/56764bc673df2a311148cba5eaded505f146e84f



More information about the pld-cvs-commit mailing list