Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 3b2566663d7163a9312af3e56a04e689 > files > 29

openssl-1.0.1e-8.8.mga4.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;