From: Kurt Zeilenga Date: Fri, 25 Aug 2000 23:46:09 +0000 (+0000) Subject: Fix typo which escaped my obviously flawed midnight test X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2174 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef3fb24f398b1bbbf9532ec06b81424523572bee;p=openldap Fix typo which escaped my obviously flawed midnight test (I must have been dreamed that the 'make test' completed successfully) --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index bb2d127863..1c735b845e 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -508,7 +508,7 @@ main( int argc, char **argv ) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { + if( ld == NULL ) { fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index ed89f35270..717563fdce 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -575,7 +575,7 @@ main( int argc, char **argv ) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { + if( ld == NULL ) { fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 8782d1c077..e958e60770 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -551,7 +551,7 @@ main(int argc, char **argv) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { + if( ld == NULL ) { fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); return EXIT_FAILURE; } diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 6564b6161a..ad5af86010 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -579,7 +579,7 @@ main( int argc, char *argv[] ) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { + if( ld == NULL ) { fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); return EXIT_FAILURE; } diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index f105ec0438..3bb90f9454 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -679,7 +679,7 @@ main( int argc, char **argv ) (void) ldap_initialize( &ld, ldapuri ); } - if( ld != NULL ) { + if( ld == NULL ) { fprintf( stderr, "Could not create LDAP session handle (%d): %s\n", rc ); return EXIT_FAILURE; }