add relative PB-TNC message offset
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 16:59:35 +0000 (18:59 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 16:59:35 +0000 (18:59 +0200)
src/libcharon/plugins/tnccs_20/batch/pb_tnc_batch.c

index efc6d3e..8d9968c 100644 (file)
@@ -417,7 +417,7 @@ static status_t process_tnc_msg(private_pb_tnc_batch_t *this)
        if (status == FAILED || status == VERIFY_ERROR)
        {
                msg = pb_error_msg_create_with_offset(TRUE, PEN_IETF,
-                                                       PB_ERROR_INVALID_PARAMETER, this->offset);
+                                                       PB_ERROR_INVALID_PARAMETER, this->offset + offset);
                this->errors->insert_last(this->errors, msg);
        }
        if (status == FAILED)