Actions
Bug #14369
closedWin32::Resolv.get_hosts_path may return nil, causing Resolv to fail
Description
Win32::Resolv.get_hosts_path() may return nil
.
The Resolv
class uses that to get the hosts filename which is used as the default when initializing Hosts
as @filename
.
However, File.open(@filename, 'rb')
is always called, even if @filename
is nil
.
This causes the error: TypeError: no implicit conversion of nil into String
Actions
Like0
Like0Like0Like0