From: Julien Desfossez Date: Tue, 10 Dec 2013 16:18:31 +0000 (-0500) Subject: Fix: close connection on incompatible version check X-Git-Tag: v2.4.0-rc2~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=721806696a064ffba764bb171ef5b79b0542ae60;p=lttng-tools.git Fix: close connection on incompatible version check Signed-off-by: Julien Desfossez Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index cdbb5b12b..c1f0ff050 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -478,7 +478,7 @@ int viewer_connect(struct relay_command *cmd) if (reply.major != be32toh(msg.major)) { DBG("Incompatible major versions (%u vs %u)", reply.major, be32toh(msg.major)); - ret = 0; + ret = -1; goto end; }