Fix invalid channel creation
[lttng-tools.git] / ltt-sessiond / main.c
index 44b0c84ba0bedf98f301c237fbf57e1994660a79..3e8a12d6dfd1a04609b88644d56270654ac81afb 100644 (file)
@@ -3,8 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; only version 2
+ * of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -1646,7 +1646,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                                }
 
                                ret = kernel_create_channel(cmd_ctx->session->kernel_session,
-                                               &cmd_ctx->lsm->u.channel.chan, cmd_ctx->session->path);
+                                               chan, cmd_ctx->session->path);
                                if (ret < 0) {
                                        ret = LTTCOMM_KERN_CHAN_FAIL;
                                        goto error;
This page took 0.023131 seconds and 4 git commands to generate.