summaryrefslogtreecommitdiff
path: root/src/reply-password
diff options
context:
space:
mode:
Diffstat (limited to 'src/reply-password')
-rw-r--r--src/reply-password/reply-password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reply-password/reply-password.c b/src/reply-password/reply-password.c
index c730216b73..73c2d1bbdf 100644
--- a/src/reply-password/reply-password.c
+++ b/src/reply-password/reply-password.c
@@ -53,7 +53,7 @@ static int send_on_socket(int fd, const char *socket_name, const void *packet, s
if (sendto(fd, packet, size, MSG_NOSIGNAL, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(socket_name)) < 0) {
log_error("Failed to send: %m");
- return -1;
+ return -errno;
}
return 0;