From: David Goulet Date: Tue, 11 Sep 2012 20:24:56 +0000 (-0400) Subject: Fix: Relayd fix ret value when adding a connection X-Git-Tag: v2.1.0-rc3~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cdf0f8fc6cbb1f38d13eca0aea355eedd0a7a738;p=lttng-tools.git Fix: Relayd fix ret value when adding a connection The pointer was used and not the struct size. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 3826f0a75..e9b70a396 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1407,7 +1407,7 @@ int relay_add_connection(int fd, struct lttng_poll_event *events, goto error; } ret = read(fd, relay_connection, sizeof(struct relay_command)); - if (ret < 0 || ret < sizeof(relay_connection)) { + if (ret < 0 || ret < sizeof(struct relay_command)) { PERROR("read relay cmd pipe"); goto error_read; }