max_message_count = 0 disables limit

This commit is contained in:
Andreas Steffen
2012-07-11 17:09:04 +02:00
parent 22f9174609
commit 3bd452f8f3
2 changed files with 5 additions and 5 deletions
+1 -1
View 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,