log invalid TLS packet length

This commit is contained in:
Andreas Steffen
2012-07-11 17:09:04 +02:00
parent 5b35214a87
commit da67c37d65
+2 -1
View 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),