]> git.sur5r.net Git - openldap/commitdiff
Changed (!strcmp(...)==0) to (strcmp(...)==0); obviously
authorLuke Howard <lukeh@openldap.org>
Tue, 1 Feb 2000 23:34:16 +0000 (23:34 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 1 Feb 2000 23:34:16 +0000 (23:34 +0000)
wrong. Fix from adamson@andrew.cmu.edu.

libraries/libldap/sasl.c

index 7b8a8ac6cce6f4a4ce77b254bb6fc0e768c28eb4..601385fc59783d34dd6a641d0343b6244d514388 100644 (file)
@@ -570,7 +570,7 @@ ldap_pvt_sasl_getmechs ( LDAP *ld, LDAP_CONST char *desired, char **pmechlist )
                rc = LDAP_INAPPROPRIATE_AUTH;
 
                for ( p = values; *p != NULL; p++ ) {
-                       if ( !strcmp( *p, desired ) == 0 ) {
+                       if ( strcmp( *p, desired ) == 0 ) {
                                rc = LDAP_SUCCESS;
                                break;
                        }