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

List:       kde-commits
Subject:    KDE/kdepimlibs/kldap
From:       Andre Heinecke <aheinecke () intevation ! de>
Date:       2010-12-03 23:30:12
Message-ID: 20101203233012.AD92BAC8A4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1203428 by aheinecke:

Use the msgid variable only in the case sasl bind is used


 M  +4 -4      ldapoperation.cpp  


--- trunk/KDE/kdepimlibs/kldap/ldapoperation.cpp #1203427:1203428
@@ -353,15 +353,15 @@
 
     if ( async ) {
       kDebug() << "ldap_sasl_bind (simple)";
-      int msgid;
 #ifndef HAVE_WINLDAP_H
+      int msgid = 0;
       ret = ldap_sasl_bind( ld, bindname.data(), 0, &ccred, 0, 0, &msgid );
+      if ( ret == 0 ) {
+        ret = msgid;
+      }
 #else
       ret = ldap_simple_bind( ld, bindname.data(),pass.data() );
 #endif
-      if ( ret == 0 ) {
-        ret = msgid;
-      }
     } else {
       kDebug() << "ldap_sasl_bind_s (simple)";
 #ifndef HAVE_WINLDAP_H
[prev in list] [next in list] [prev in thread] [next in thread] 

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