- offset += sizeof(notification_comm);
- condition_size = lttng_condition_serialize(notification->condition,
- buf ? (buf + offset) : NULL);
- if (condition_size < 0) {
- ret = condition_size;
+ size_before_payload = buf->size;
+ ret = lttng_condition_serialize(notification->condition,
+ buf);
+ if (ret) {