summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a33c265)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = -LTTNG_ERR_NOMEM;
goto error;
}
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;
}
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);
ret = lttcomm_recv_unix_sock(sock, provider_name,
provider_name_len);
if (ret < 0) {
goto error_add_context;
}
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;