]> granicus.if.org Git - sudo/commitdiff
The exit() in log_error() was mistakenly removed in a previous version.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 8 Oct 1999 01:12:02 +0000 (01:12 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 8 Oct 1999 01:12:02 +0000 (01:12 +0000)
Put it back...

logging.c

index b9f60047232c98964f7f8caaec9b21fd8891b29b..224fa4d8a4cf6d49183bb69ff96390cacea43c60 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -387,6 +387,9 @@ log_error(va_alist)
     free(logline);
     if (message != logline);
        free(message);
+
+    if (!(flags & NO_EXIT))
+       exit(1);
 }
 
 #define MAX_MAILFLAGS  63