From ef3fb24f398b1bbbf9532ec06b81424523572bee Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 25 Aug 2000 23:46:09 +0000 Subject: [PATCH] Fix typo which escaped my obviously flawed midnight test (I must have been dreamed that the 'make test' completed successfully) --- clients/tools/ldapdelete.c | 2 +- clients/tools/ldapmodify.c | 2 +- clients/tools/ldapmodrdn.c | 2 +- clients/tools/ldappasswd.c | 2 +- clients/tools/ldapsearch.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.5