aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpauth/htdigest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/httpauth/htdigest.rb')
-rw-r--r--lib/webrick/httpauth/htdigest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpauth/htdigest.rb b/lib/webrick/httpauth/htdigest.rb
index 1ef4fdb4aa..1b42c02dfa 100644
--- a/lib/webrick/httpauth/htdigest.rb
+++ b/lib/webrick/httpauth/htdigest.rb
@@ -79,7 +79,7 @@ module WEBrick
File::rename(tmp.path, output)
renamed = true
ensure
- tmp.close if !tmp.closed?
+ tmp.close
File.unlink(tmp.path) if !renamed
end
end