Work around other OpenSSL stupidity.
authorAlan T. DeKok <aland@freeradius.org>
Sun, 11 Oct 2015 21:21:57 +0000 (17:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 11 Oct 2015 21:21:57 +0000 (17:21 -0400)
src/modules/rlm_eap/libeap/cb.c

index c198ed0..c2bf7d5 100644 (file)
@@ -102,6 +102,8 @@ void cbtls_msg(int write_p, int msg_version, int content_type,
         */
        if ((msg_version == 0) && (content_type > 255)) return;
 
+       if ((write_p != 0) && (write_p != 1)) return;
+
        /*
         *      Work around bug #298, where we may be called with a NULL
         *      argument.  We should really log a serious error