Fix: wrong sizeof argument in live viewer create session
authorDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 20:58:52 +0000 (15:58 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 20:59:57 +0000 (15:59 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/live.c

index 099257da29ad3695a6f75f9e896fb235932dfe76..c70c31762f7d7f0dd7c40e63acffadf3a1d46c4b 100644 (file)
@@ -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);
This page took 0.026691 seconds and 4 git commands to generate.