Fix: close connection on incompatible version check
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 10 Dec 2013 16:18:31 +0000 (11:18 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 10 Dec 2013 18:57:04 +0000 (13:57 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/live.c

index cdbb5b12bdb873de53d56b617c25f0f95a9bf01b..c1f0ff050c575aee5d9b9cfc88371e482ac5c6c7 100644 (file)
@@ -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;
        }
 
This page took 0.027175 seconds and 4 git commands to generate.