From: Luke Howard Date: Tue, 1 Feb 2000 23:34:16 +0000 (+0000) Subject: Changed (!strcmp(...)==0) to (strcmp(...)==0); obviously X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3203 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=30522f7437397c206050386f40ffc16023c7382a;p=openldap Changed (!strcmp(...)==0) to (strcmp(...)==0); obviously wrong. Fix from adamson@andrew.cmu.edu. --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 7b8a8ac6cc..601385fc59 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -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; }