From: David Goulet Date: Tue, 11 Feb 2014 20:16:34 +0000 (-0500) Subject: Fix: zero out the reply structure in viewer_connect X-Git-Tag: v2.5.0-rc1~189 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=df41f83900588678747090dde5cc7e5216673749 Fix: zero out the reply structure in viewer_connect Fixes #728 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 445f432e4..099257da2 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -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;