Validate match of all session channel's UUID
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 53ca5dbe28ef7f2f8dfc82344cc7b5d454bf627d..af2a47dcb5269ac8ec478a75fa18afdfd63fbd2a 100644 (file)
@@ -502,6 +502,11 @@ int lttng_abi_map_channel(int session_objd,
                goto alloc_error;
        }
 
+       if (lttng_ust_session_uuid_validate(session, lttng_chan_config->uuid)) {
+               ret = -EINVAL;
+               goto uuid_error;
+       }
+
        /* Lookup transport name */
        switch (type) {
        case LTTNG_UST_ABI_CHAN_PER_CPU:
@@ -578,6 +583,7 @@ int lttng_abi_map_channel(int session_objd,
        /* error path after channel was created */
 objd_error:
 notransport:
+uuid_error:
 alloc_error:
        channel_destroy(chan, channel_handle, 0);
        lttng_ust_free_channel_common(lttng_chan_buf->parent);
This page took 0.024985 seconds and 4 git commands to generate.