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.4.0-rc5~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=325f2df91c6ac2a586341d4a7e3b2f43d567d331;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);