Fix: zero out the reply structure in viewer_connect
authorDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 20:16:34 +0000 (15:16 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 20:16:34 +0000 (15:16 -0500)
Fixes #728

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/live.c

index 445f432e416a60f584516770c96bf3d278685d2b..099257da29ad3695a6f75f9e896fb235932dfe76 100644 (file)
@@ -694,6 +694,7 @@ int viewer_connect(struct relay_connection *conn)
 
        health_code_update();
 
+       memset(&msg, 0, sizeof(msg));
        reply.major = RELAYD_VERSION_COMM_MAJOR;
        reply.minor = RELAYD_VERSION_COMM_MINOR;
 
This page took 0.027103 seconds and 4 git commands to generate.