max_message_count = 0 disables limit
[strongswan.git] / src / libtls / tls_eap.c
index 9cd5721..1354fa1 100644 (file)
@@ -320,7 +320,7 @@ METHOD(tls_eap_t, process, status_t,
        eap_tls_packet_t *pkt;
        status_t status;
 
-       if (++this->processed > this->max_msg_count)
+       if (this->max_msg_count && ++this->processed > this->max_msg_count)
        {
                DBG1(DBG_TLS, "%N packet count exceeded (%d > %d)",
                         eap_type_names, this->type,