aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_eap.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-07-09 09:47:18 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-07-11 17:09:04 +0200
commit3bd452f8f37b9cf649683bac2fad7348d008810a (patch)
tree4d97357066d7fb8a3ce9d14cc8cdcc03e5cd9213 /src/libtls/tls_eap.c
parent22f917460924067d5ca37264764ea25495396f0e (diff)
downloadstrongswan-3bd452f8f37b9cf649683bac2fad7348d008810a.tar.bz2
strongswan-3bd452f8f37b9cf649683bac2fad7348d008810a.tar.xz
max_message_count = 0 disables limit
Diffstat (limited to 'src/libtls/tls_eap.c')
-rw-r--r--src/libtls/tls_eap.c2
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,