]> git.sur5r.net Git - openldap/commitdiff
Fix == != typo
authorKurt Zeilenga <kurt@openldap.org>
Sun, 12 Dec 1999 05:02:03 +0000 (05:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 12 Dec 1999 05:02:03 +0000 (05:02 +0000)
libraries/libldap/sasl.c

index 81a97dd593d945bf7cc913ccc370a23946e99a60..d3ae344f78d1843db05573a92879e8c560149fb1 100644 (file)
@@ -252,14 +252,14 @@ ldap_parse_sasl_bind_result(
                return LDAP_PARAM_ERROR;
        }
 
-       if(servercredp != NULL) {
+       if( servercredp != NULL ) {
                if( ld->ld_version < LDAP_VERSION2 ) {
                        return LDAP_NOT_SUPPORTED;
                }
                *servercredp = NULL;
        }
 
-       if( res->lm_msgtype == LDAP_RES_BIND ) {
+       if( res->lm_msgtype != LDAP_RES_BIND ) {
                ld->ld_errno = LDAP_PARAM_ERROR;
                return ld->ld_errno;
        }