diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libtls/tls_eap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtls/tls_eap.c b/src/libtls/tls_eap.c index 9cd572103..1354fa144 100644 --- a/src/libtls/tls_eap.c +++ b/src/libtls/tls_eap.c @@ -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, |