log invalid TLS packet length
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 8 Jul 2012 05:35:01 +0000 (07:35 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 11 Jul 2012 15:09:04 +0000 (17:09 +0200)
src/libtls/tls_eap.c

index 685904f..9cd5721 100644 (file)
@@ -165,7 +165,8 @@ static status_t process_pkt(private_tls_eap_t *this, eap_tls_packet_t *pkt)
                if (msg_len < pkt_len - sizeof(eap_tls_packet_t) - sizeof(msg_len) ||
                        msg_len > MAX_TLS_MESSAGE_LEN)
                {
-                       DBG1(DBG_TLS, "invalid %N packet length", eap_type_names, this->type);
+                       DBG1(DBG_TLS, "invalid %N packet length (%u bytes)", eap_type_names,
+                                this->type, msg_len);
                        return FAILED;
                }
                return this->tls->process(this->tls, (char*)(pkt + 1) + sizeof(msg_len),