From cdf0f8fc6cbb1f38d13eca0aea355eedd0a7a738 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 11 Sep 2012 16:24:56 -0400 Subject: [PATCH] Fix: Relayd fix ret value when adding a connection The pointer was used and not the struct size. Signed-off-by: David Goulet --- src/bin/lttng-relayd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1