directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r655321 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java
Date Sun, 11 May 2008 15:12:58 GMT
Author: akarasulu
Date: Sun May 11 08:12:58 2008
New Revision: 655321

URL: http://svn.apache.org/viewvc?rev=655321&view=rev
Log:
fixing potential NPE bug in NTLM provider result handling

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java?rev=655321&r1=655320&r2=655321&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/bind/ntlm/NtlmAuthenticationResult.java
Sun May 11 08:12:58 2008
@@ -57,6 +57,10 @@
      */
     public byte[] getResponse()
     {
+        if ( response == null )
+        {
+            return null;
+        }
         byte[] copy = new byte[response.length];
         System.arraycopy( response, 0, copy, 0, response.length );
         return copy;



Mime
View raw message