projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Consumer return value check after mmap/splice
[lttng-tools.git]
/
src
/
common
/
relayd
/
relayd.c
diff --git
a/src/common/relayd/relayd.c
b/src/common/relayd/relayd.c
index f79555fa8c1330e988efd0645d57a31839402306..27cb58e52ae49113f877c9e31b604d349000ffaf 100644
(file)
--- a/
src/common/relayd/relayd.c
+++ b/
src/common/relayd/relayd.c
@@
-136,7
+136,7
@@
int relayd_add_stream(struct lttcomm_sock *sock, const char *channel_name,
reply.ret_code = be32toh(reply.ret_code);
/* Return session id or negative ret code. */
reply.ret_code = be32toh(reply.ret_code);
/* Return session id or negative ret code. */
- if (reply.ret_code != LTT
COMM
_OK) {
+ if (reply.ret_code != LTT
NG
_OK) {
ret = -reply.ret_code;
ERR("Relayd add stream replied error %d", ret);
} else {
ret = -reply.ret_code;
ERR("Relayd add stream replied error %d", ret);
} else {
@@
-328,7
+328,7
@@
int relayd_send_close_stream(struct lttcomm_sock *sock, uint64_t stream_id,
reply.ret_code = be32toh(reply.ret_code);
/* Return session id or negative ret code. */
reply.ret_code = be32toh(reply.ret_code);
/* Return session id or negative ret code. */
- if (reply.ret_code != LTT
COMM
_OK) {
+ if (reply.ret_code != LTT
NG
_OK) {
ret = -reply.ret_code;
ERR("Relayd close stream replied error %d", ret);
} else {
ret = -reply.ret_code;
ERR("Relayd close stream replied error %d", ret);
} else {
This page took
0.02441 seconds
and
4
git commands to generate.