Fix: unchecked lttng_dynamic_buffer_set_size return value
[lttng-tools.git] / src / lib / lttng-ctl / channel.c
index 75a911f2af3ec7080085c648792d23393f82ad1c..5bfb75902e2ff98155884208668125ecd9db1799 100644 (file)
@@ -81,7 +81,9 @@ int receive_message(struct lttng_notification_channel *channel)
 end:
        return ret;
 error:
-       lttng_dynamic_buffer_set_size(&channel->reception_buffer, 0);
+       if (lttng_dynamic_buffer_set_size(&channel->reception_buffer, 0)) {
+               ret = -1;
+       }
        goto end;
 }
 
This page took 0.025685 seconds and 5 git commands to generate.