[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kabc/plugins/ldap
From:       Malte Starostik <malte () kde ! org>
Date:       2003-02-03 0:27:32
[Download RAW message or body]

CVS commit by malte: 

Don't crash


  M +11 -8     resourceldap.cpp   1.19


--- kdelibs/kabc/plugins/ldap/resourceldap.cpp  #1.18:1.19
@@ -50,5 +50,6 @@ ResourceLDAP::ResourceLDAP( const KConfi
 {
   mLdap = 0;
-
+  if ( config )
+  {
   mUser = config->readEntry( "LdapUser" );
   mPassword = decryptStr( config->readEntry( "LdapPassword" ) );
@@ -58,4 +59,6 @@ ResourceLDAP::ResourceLDAP( const KConfi
   mFilter = config->readEntry( "LdapFilter" );
   mAnonymous = config->readBoolEntry( "LdapAnonymous" );
+  }
+  else mPort = 389;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic