X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=c8989113a2e9b701f460b92ad189b7e2a3b60189;hp=7a8b5ae42dcfedb4c7af6a159997d3eaa98dd02f;hb=e0f4d107bab7aff609fa3e72b104eb78165380f8;hpb=2001793c1141e89b34e70efb28b27ec0cc8e6d47 diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 7a8b5ae42..c8989113a 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -3369,12 +3369,16 @@ skip_domain: ret = -LTTNG_ERR_NOMEM; goto error; } + cmd_ctx->lsm->u.context.ctx.u.app_ctx.provider_name = + provider_name; context_name = zmalloc(context_name_len + 1); if (!context_name) { ret = -LTTNG_ERR_NOMEM; goto error_add_context; } + cmd_ctx->lsm->u.context.ctx.u.app_ctx.ctx_name = + context_name; ret = lttcomm_recv_unix_sock(sock, provider_name, provider_name_len); @@ -3387,10 +3391,6 @@ skip_domain: if (ret < 0) { goto error_add_context; } - cmd_ctx->lsm->u.context.ctx.u.app_ctx.provider_name = - provider_name; - cmd_ctx->lsm->u.context.ctx.u.app_ctx.ctx_name = - context_name; } /*