aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/tnccs_20/tnccs_20.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/plugins/tnccs_20/tnccs_20.c b/src/libcharon/plugins/tnccs_20/tnccs_20.c
index 72a52881e..fd76680a1 100644
--- a/src/libcharon/plugins/tnccs_20/tnccs_20.c
+++ b/src/libcharon/plugins/tnccs_20/tnccs_20.c
@@ -152,13 +152,14 @@ METHOD(tls_t, process, status_t,
if (pos)
{
pos++;
- len = buflen - ((char*)buf - pos);
+ len = buflen - (pos - (char*)buf);
}
else
{
pos = buf;
len = buflen;
}
+ DBG1(DBG_TNC, "received message '%.*s'", len, pos);
if (this->is_server)
{
charon->imvs->receive_message(charon->imvs, this->connection_id,