Fix: unchecked return value in _lttng_variant_statedump()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 14 Feb 2016 22:52:03 +0000 (17:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 14 Feb 2016 22:52:18 +0000 (17:52 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-metadata.c

index cb77e81300f82c6e4d20552ce7f154380389b0f3..78ecb1dd36bd306c367a1035df838ff94ce6f961 100644 (file)
@@ -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);
This page took 0.026178 seconds and 4 git commands to generate.