From: David Goulet Date: Tue, 11 Feb 2014 20:58:52 +0000 (-0500) Subject: Fix: wrong sizeof argument in live viewer create session X-Git-Tag: v2.5.0-rc1~188 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=32816a9357121a71d6cd13c96819cf9dd27fe197;p=lttng-tools.git Fix: wrong sizeof argument in live viewer create session Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 099257da2..c70c31762 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -1635,7 +1635,7 @@ int viewer_create_session(struct relay_connection *conn) DBG("Viewer create session received"); resp.status = htobe32(LTTNG_VIEWER_CREATE_SESSION_OK); - conn->viewer_session = zmalloc(sizeof(conn->viewer_session)); + conn->viewer_session = zmalloc(sizeof(*conn->viewer_session)); if (!conn->viewer_session) { ERR("Allocation viewer session"); resp.status = htobe32(LTTNG_VIEWER_CREATE_SESSION_ERR);