From: Jérémie Galarneau Date: Sun, 14 Feb 2016 22:52:03 +0000 (-0500) Subject: Fix: unchecked return value in _lttng_variant_statedump() X-Git-Tag: v2.8.0-rc1~165 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dc6403f327ca876741ad868988bf5ebd2ab732c6;p=lttng-tools.git Fix: unchecked return value in _lttng_variant_statedump() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-metadata.c b/src/bin/lttng-sessiond/ust-metadata.c index cb77e8130..78ecb1dd3 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -365,6 +365,9 @@ int _lttng_variant_statedump(struct ust_registry_session *session, ret = _lttng_field_statedump(session, fields, nr_fields, iter_field, nesting + 1); + if (ret) { + goto end; + } } sanitize_ctf_identifier(identifier, variant->name); ret = print_tabs(session, nesting);