--- ssl/s23_srvr.c.orig	2014-10-17 11:51:30.000000000 +0200
+++ ssl/s23_srvr.c	2014-10-17 12:02:06.000000000 +0200
@@ -394,12 +394,15 @@
 			else
 				{
 				/* client requests SSL 3.0 */
+#ifndef OPENSSL_NO_SSL3
 				if (!(s->options & SSL_OP_NO_SSLv3))
 					{
 					s->version=SSL3_VERSION;
 					type=3;
 					}
-				else if (!(s->options & SSL_OP_NO_TLSv1))
+				else
+#endif
+				if (!(s->options & SSL_OP_NO_TLSv1))
 					{
 					/* we won't be able to use TLS of course,
 					 * but this will send an appropriate alert */
