projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3a43a
)
Fix: Relayd fix ret value when adding a connection
author
David Goulet
<dgoulet@efficios.com>
Tue, 11 Sep 2012 20:24:56 +0000
(16:24 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 11 Sep 2012 20:25:50 +0000
(16:25 -0400)
The pointer was used and not the struct size.
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index 3826f0a759bcf8580706a2b64f1fb82d7d0b1d1c..e9b70a396740164aeaacc6814543248bf938cbb6 100644
(file)
--- 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;
}
This page took
0.026899 seconds
and
4
git commands to generate.