Skip to content

Commit

Permalink
Fix to unlock files in premature return
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Feb 3, 2024
1 parent bb657f0 commit dfb4be2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3380,6 +3380,7 @@ sub feature_add_protected_dir
my $server = &find_domain_server($d);
if (!$server) {
$err = $text{'server_eexist'};
&unlock_all_config_files();
return wantarray ? ($err, -2) : $err;
}
my $public_html_dir = &virtual_server::public_html_dir($d);
Expand Down

0 comments on commit dfb4be2

Please sign in to comment.