lib/net/ssh/kerberos/context.rb in net-ssh-kerberos-0.2.6 vs lib/net/ssh/kerberos/context.rb in net-ssh-kerberos-0.2.7
- old
+ new
@@ -24,10 +24,10 @@
z = (user.include?('@') ? user.gsub('@','/') : user+'/')
@credentials = creds
ensure
if @credentials.nil?
- release_credentials creds
+ release_credentials creds unless creds.nil?
@cred_name = @cred_krb_name = nil
end
end
@server_name = Socket.gethostbyname(host)[0]