X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent-thread.c;h=1caf748432a4ec1918cab71a87b4788e02da1e47;hp=0e827a4456d4c0ea9c37b54818bbcb6ba4c5e7a7;hb=79865500b89925b61767294821e0706a57d493d5;hpb=c052142c0fb4ce4cd13999218852ceb2d07ea51e diff --git a/src/bin/lttng-sessiond/agent-thread.c b/src/bin/lttng-sessiond/agent-thread.c index 0e827a445..1caf74843 100644 --- a/src/bin/lttng-sessiond/agent-thread.c +++ b/src/bin/lttng-sessiond/agent-thread.c @@ -215,7 +215,7 @@ static int handle_registration(struct lttcomm_sock *reg_sock, size = new_sock->ops->recvmsg(new_sock, &msg, sizeof(msg), 0); if (size < sizeof(msg)) { - ret = -errno; + ret = -EINVAL; goto error_socket; } domain = be32toh(msg.domain);