eliminate message length field in EAP-TNC

This commit is contained in:
Andreas Steffen
2012-07-11 17:09:05 +02:00
parent c8aabefd08
commit 6245edf37e
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ METHOD(tls_t, build, status_t,
DBG1(DBG_TNC, "sending TNCCS Batch (%d bytes) for Connection ID %u",
data.len, this->connection_id);
DBG3(DBG_TNC, "%.*s", data.len, data.ptr);
*msglen = data.len;
*msglen = 0;
if (data.len > *buflen)
{
+1 -1
View File
@@ -641,7 +641,7 @@ METHOD(tls_t, build, status_t,
pb_tnc_batch_type_names, batch_type, data.len,
this->connection_id);
DBG3(DBG_TNC, "%B", &data);
*msglen = data.len;
*msglen = 0;
if (data.len > *buflen)
{