Skip to content

Commit

Permalink
remove_secure_session(): Return-On-Success Only
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
  • Loading branch information
TinCanTech committed May 1, 2023
1 parent 1529944 commit a9bc2ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,15 @@ remove_secure_session() {
[ -d "$secured_session" ]
then
# Always remove temp-session
rm -rf "$secured_session"
if rm -rf "$secured_session"; then
verbose "\
remove_secure_session: DELETED: $secured_session"
unset -v working_safe_ssl_conf mktemp_counter \
secured_session
else
die "remove_secure_session: $secured_session"
return 0
fi

die "remove_secure_session: $secured_session"
} # => remove_secure_session()

# Create temp-file atomically or fail
Expand Down

0 comments on commit a9bc2ee

Please sign in to comment.