From: Jérémie Galarneau Date: Wed, 29 Aug 2018 22:47:44 +0000 (-0400) Subject: Fix: missing return value check in notification serialization X-Git-Tag: v2.11.0-rc1~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=28cff59fb9ef4a4cdef7252708cc967b4e7a4f72;p=lttng-tools.git Fix: missing return value check in notification serialization Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/notification.c b/src/common/notification.c index 674429692..e32737dce 100644 --- a/src/common/notification.c +++ b/src/common/notification.c @@ -56,6 +56,9 @@ int lttng_notification_serialize(const struct lttng_notification *notification, header_offset = buf->size; ret = lttng_dynamic_buffer_append(buf, ¬ification_comm, sizeof(notification_comm)); + if (ret) { + goto end; + } size_before_payload = buf->size; ret = lttng_condition_serialize(notification->condition,