Fix compatibility with OpenSSL 1.0.2
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Oct 2015 00:48:09 +0000 (20:48 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Oct 2015 00:48:09 +0000 (20:48 -0400)
Which may help OS maintainers who really, really, really want to keep support for v2.x.x.

src/modules/rlm_eap/libeap/cb.c

index 7048f6e..c198ed0 100644 (file)
@@ -98,6 +98,11 @@ void cbtls_msg(int write_p, int msg_version, int content_type,
        tls_session_t *state = (tls_session_t *)arg;
 
        /*
+        *      Work around for pseudo content types in OpenSSL 1.0.2
+        */
+       if ((msg_version == 0) && (content_type > 255)) return;
+
+       /*
         *      Work around bug #298, where we may be called with a NULL
         *      argument.  We should really log a serious error
         */