instead of cloning use extract_buf() method
This commit is contained in:
@@ -106,7 +106,7 @@ METHOD(pa_tnc_attr_t, build, void,
|
||||
|
||||
writer = bio_writer_create(ASSESS_RESULT_SIZE);
|
||||
writer->write_uint32(writer, this->result);
|
||||
this->value = chunk_clone(writer->get_buf(writer));
|
||||
this->value = writer->extract_buf(writer);
|
||||
writer->destroy(writer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user