Don't use rad_assert in libeap, it's a server-only function.
[freeradius.git] / src / modules / rlm_eap / libeap / eap_tls.c
index c7708e9..4e36833 100644 (file)
@@ -37,6 +37,8 @@
  *
  */
 
+#include "autoconf.h"
+#include <assert.h>
 #include "eap_tls.h"
 
 /*
@@ -458,7 +460,7 @@ static EAPTLS_PACKET *eaptls_extract(EAP_DS *eap_ds, eaptls_status_t status)
         *      MUST have TLS type octet, followed by flags, followed
         *      by data.
         */
-       rad_assert(eap_ds->response->length > 2);
+       assert(eap_ds->response->length > 2);
 
        tlspacket = eaptls_alloc();
        if (tlspacket == NULL) return NULL;