diff --git a/clients/gopher/go500.c b/clients/gopher/go500.c index 367ecaebfe..984b38ab46 100644 --- a/clients/gopher/go500.c +++ b/clients/gopher/go500.c @@ -427,7 +427,7 @@ int s; fprintf( fp, ".\r\n" ); rewind(fp); - if ( ld == NULL) { + if ( ld != NULL) { ldap_unbind( ld ); }