From 8aa5b95f0c287053a5aeda84980009c913d6eebc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Dec 2025 20:41:05 +0100 Subject: Add missing exit on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- asroot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/asroot.c b/asroot.c index 1a422e0..eeed7ed 100644 --- a/asroot.c +++ b/asroot.c @@ -151,6 +151,7 @@ check_password(void) hostname = realloc(hostname, size *= 2); if (!hostname) { fprintf(stderr, "%s: realloc %zu: %s\n", argv0, size, strerror(errno)); + exit(EXIT_ERROR); } *hostname = 0; if (!gethostname(hostname, size)) { -- cgit v1.2.3-70-g09d2