Skip to content

Commit

Permalink
Merge branch 'remove_secure_session-ROS' of ssh://github.com/TinCanTe…
Browse files Browse the repository at this point in the history
…ch/easy-rsa into TinCanTech-remove_secure_session-ROS

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
  • Loading branch information
TinCanTech committed May 1, 2023
2 parents aca34a0 + a9192c1 commit ddc87e9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,16 @@ remove_secure_session() {
[ -d "$secured_session" ]
then
# Always remove temp-session
rm -rf "$secured_session"
verbose "\
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"
unset -v working_safe_ssl_conf \
mktemp_counter secured_session
return 0
fi
fi

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

# Create temp-file atomically or fail
Expand Down

0 comments on commit ddc87e9

Please sign in to comment.