From 532bbbd107a562d09d098506d70fc300d54a73c2 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 21 Dec 2011 00:09:51 -0800 Subject: [PATCH] No need to create Map if user not valid. --- .../guacamole/net/basic/BasicFileAuthenticationProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java index 91a6b1b49..3f14763bd 100644 --- a/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java +++ b/guacamole/src/main/java/net/sourceforge/guacamole/net/basic/BasicFileAuthenticationProvider.java @@ -133,11 +133,10 @@ public class BasicFileAuthenticationProvider implements AuthenticationProvider configs = new HashMap(); - // Validate and return info for given user and pass AuthInfo info = mapping.get(credentials.getUsername()); if (info != null && info.validate(credentials.getUsername(), credentials.getPassword())) { + Map configs = new HashMap(); configs.put("DEFAULT", info.getConfiguration()); return configs; }