add relative PB-TNC message offset
[strongswan.git] / 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)