aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--asroot.c1
1 files changed, 1 insertions, 0 deletions
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)) {