Fix: return EINVAL if agent registration fails
[lttng-tools.git] / src / bin / lttng-sessiond / jul-thread.c
index 9859a1071b31adf7c408a4937cb7a53939042300..1630fc55348b983a509432f6fe1d748eb92e683d 100644 (file)
@@ -208,7 +208,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;
        }
        pid = be32toh(msg.pid);
This page took 0.024942 seconds and 4 git commands to generate.