summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/socket-label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/socket-label.c b/src/shared/socket-label.c
index eb09779b33..83ea1a9ef8 100644
--- a/src/shared/socket-label.c
+++ b/src/shared/socket-label.c
@@ -166,7 +166,7 @@ int make_socket_fd(int log_level, const char* address, int flags) {
}
if (fd < 0)
- log_error("Failed to listen on %s: %s", p, strerror(-r));
+ log_error("Failed to listen on %s: %s", p, strerror(-fd));
else
log_full(log_level, "Listening on %s", p);
}