]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-socket-bind: pass the right error variable
authorDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 11:41:30 +0000 (13:41 +0200)
committerDavid Tardon <dtardon@redhat.com>
Tue, 7 May 2024 12:02:08 +0000 (14:02 +0200)
src/test/test-socket-bind.c

index fb65573e7a7908e7c1c2de60b23cee9943359fb3..13ffa92cf13429f9ba93860ed82765979f94c422 100644 (file)
@@ -83,7 +83,7 @@ static int test_socket_bind(
         while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
                 r = sd_event_run(m->event, UINT64_MAX);
                 if (r < 0)
-                        return log_error_errno(errno, "Event run failed %m");
+                        return log_error_errno(r, "Event run failed %m");
         }
 
         cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;