Sophie

Sophie

distrib > Mageia > 3 > x86_64 > media > core-updates-src > by-pkgid > 07a65ad359ceb60c5e65e7958d134560 > files > 29

openssl-1.0.1e-1.11.mga3.src.rpm

diff -Naur -x '*.orig' -x '*~' -x '*.rej' openssl-1.0.1e/ssl/s3_both.c openssl-1.0.1e-cve-2013-4353/ssl/s3_both.c
--- openssl-1.0.1e/ssl/s3_both.c	2013-02-11 16:26:04.000000000 +0100
+++ openssl-1.0.1e-cve-2013-4353/ssl/s3_both.c	2014-01-06 20:28:34.160062173 +0100
@@ -208,7 +208,11 @@
 	{
 	const char *sender;
 	int slen;
-
+	/* If no new cipher setup return immediately: other functions will
+	 * set the appropriate error.
+	 */
+	if (s->s3->tmp.new_cipher == NULL)
+		return;
 	if (s->state & SSL_ST_CONNECT)
 		{
 		sender=s->method->ssl3_enc->server_finished_label;