die() wasn't calling clean_temp;  Now it is.

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2019-01-29 13:32:36 -06:00
parent 818f76937e
commit ea464c1b08
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -254,6 +254,7 @@ die() {
Easy-RSA error:
$1" 1>&2
clean_temp;
prog_exit "${2:-1}"
} # => die()
@ -1622,7 +1623,7 @@ done
vars_setup
# Register clean_temp and prog_exit on SIGHUP, SIGINT, SIGQUIT, and SIGABRT
trap "clean_temp; prog_exit 1" 1
trap "clean_temp; prog_exit 1" 1 ERR
trap "clean_temp; prog_exit 2" 2
trap "clean_temp; prog_exit 3" 3
trap "clean_temp; prog_exit 6" 6