fixed measurement of directory contents

This commit is contained in:
Andreas Steffen
2011-09-08 12:08:15 +02:00
parent 5736aa7a02
commit 0e4b6b500f
3 changed files with 13 additions and 8 deletions
+6
View File
@@ -156,6 +156,12 @@ METHOD(pa_tnc_attr_t, build, void,
}
enumerator->destroy(enumerator);
if (first)
{
/* no attached measurements */
writer->write_uint16(writer, 0);
}
this->value = chunk_clone(writer->get_buf(writer));
writer->destroy(writer);
}