Tag: cws_src680_warnings01
User: fs      
Date: 06/06/13 01:45:33

Modified:
 /dba/connectivity/source/drivers/mozab/mozillasrc/
  MNSMozabProxy.cxx

Log:
 #i66334# only try to bind with password if it's not empty

File Changes:

Directory: /dba/connectivity/source/drivers/mozab/mozillasrc/
=============================================================

File [changed]: MNSMozabProxy.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx?r1=1.4.30.5&r2=1.4.30.6
Delta lines:  +10 -7
--------------------
--- MNSMozabProxy.cxx   7 Apr 2006 20:23:42 -0000       1.4.30.5
+++ MNSMozabProxy.cxx   13 Jun 2006 08:45:30 -0000      1.4.30.6
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: MNSMozabProxy.cxx,v $
  *
- *  $Revision: 1.4.30.5 $
+ *  $Revision: 1.4.30.6 $
  *
- *  last change: $Author: sb $ $Date: 2006/04/07 20:23:42 $
+ *  last change: $Author: fs $ $Date: 2006/06/13 08:45:30 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -362,7 +362,7 @@
        return rv;
 }
 nsresult
-MNSMozabProxy::InitLDAP(sal_Char* sUri, sal_Unicode* sBindDN, sal_Unicode* 
sPasswd,sal_Bool * nUseSSL)
+MNSMozabProxy::InitLDAP(sal_Char* sUri, sal_Unicode* sBindDN, sal_Unicode* 
pPasswd,sal_Bool * nUseSSL)
 {
     sal_Bool      useSSL    = *nUseSSL;
     nsresult       rv;
@@ -415,10 +415,13 @@
     if (NS_FAILED(rv))
        return NS_ERROR_UNEXPECTED; // this should never happen
 
+    if ( pPasswd && *pPasswd )
+    {
     nsCAutoString nsPassword;
-    nsPassword.AssignWithConversion(sPasswd);
-
+        nsPassword.AssignWithConversion(pPasswd);
     rv = ldapOperation->SimpleBind(nsPassword);
+    }
+
     if (NS_SUCCEEDED(rv))
         m_Args->arg5 = messageListener;
     return rv;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to