Commit 4bd48de6 authored by Ben Laurie's avatar Ben Laurie
Browse files

Fix warning.

parent 2eab92f8
Loading
Loading
Loading
Loading
+6 −1
Changes for ssl/s23_clnt.c: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -619,7 +619,12 @@ static int ssl23_get_server_hello(SSL *s)
#endif
		}
	else if (p[1] == SSL3_VERSION_MAJOR &&
	         (p[2] >= SSL3_VERSION_MINOR && p[2] <= TLS1_1_VERSION_MINOR) &&
#if SSL3_VERSION_MINOR == 0
		 /* p[2] is inevitably >= 0 */
	         p[2] <= TLS1_1_VERSION_MINOR &&
#else
	         p[2] >= SSL3_VERSION_MINOR && p[2] <= TLS1_1_VERSION_MINOR &&
#endif
	         ((p[0] == SSL3_RT_HANDSHAKE && p[5] == SSL3_MT_SERVER_HELLO) ||
	          (p[0] == SSL3_RT_ALERT && p[3] == 0 && p[4] == 2)))
		{