Fix: unchecked writer open element return value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 19:36:38 +0000 (15:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Aug 2018 19:36:38 +0000 (15:36 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/save.c

index e57f0e03a6b451b920592a6cb2a08d5f61d1fd29..8daf870c270395ab3675b6eb35a15db81c8f3168 100644 (file)
@@ -2245,6 +2245,9 @@ int save_session_rotation_schedules(struct config_writer *writer,
 
        ret = config_writer_open_element(writer,
                        config_element_rotation_schedules);
+       if (ret) {
+               goto end;
+       }
        if (session->rotate_timer_period) {
                ret = save_session_rotation_schedule(writer,
                                LTTNG_ROTATION_SCHEDULE_TYPE_PERIODIC,
This page took 0.030759 seconds and 4 git commands to generate.