diff --git a/udp.c b/udp.c index eb7be78..36802fb 100644 --- a/udp.c +++ b/udp.c @@ -256,7 +256,7 @@ static int udp_send(struct transport *t, struct fdarray *fda, cnt = sendto(fd, buf, len, 0, &addr->sa, sizeof(addr->sin)); if (cnt < 1) { pr_err("sendto failed: %m"); - return cnt; + return -errno; } /* * Get the time stamp right away.