Better use _exit() on checksum fail.
authorMilan Broz <gmazyland@gmail.com>
Mon, 28 May 2012 08:31:50 +0000 (10:31 +0200)
committerMilan Broz <gmazyland@gmail.com>
Mon, 28 May 2012 08:31:50 +0000 (10:31 +0200)
lib/utils_fips.c

index 4ca003f..759890d 100644 (file)
@@ -43,7 +43,7 @@ static void crypt_fips_verify(struct crypt_device *cd,
 
        if (!FIPSCHECK_verify(name, function)) {
                crypt_log(cd, CRYPT_LOG_ERROR, _("FIPS checksum verification failed.\n"));
-               exit(EXIT_FAILURE);
+               _exit(EXIT_FAILURE);
        }
 
        crypt_log(cd, CRYPT_LOG_VERBOSE, _("Running in FIPS mode.\n"));