aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/SA-14:10/openssl.patch
blob: 47f27c0267225fd1f58d5b2ab19b38a234d6c227 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: crypto/openssl/ssl/s3_pkt.c
===================================================================
--- crypto/openssl/ssl/s3_pkt.c	(revision 265111)
+++ crypto/openssl/ssl/s3_pkt.c	(working copy)
@@ -657,6 +657,10 @@ static int do_ssl3_write(SSL *s, int type, const u
 		if (i <= 0)
 			return(i);
 		/* if it went, fall through and send more stuff */
+		/* we may have released our buffer, so get it again */
+		if (wb->buf == NULL)
+			if (!ssl3_setup_write_buffer(s))
+				return -1;
 		}
 
 	if (len == 0 && !create_empty_fragment)