diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 851080512b..b8ed64d48f 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -288,9 +288,10 @@ wait4msg( } #endif /* LDAP_DEBUG */ - if( (*result = chkResponseList(ld, msgid, all)) != NULL ) { - rc = (*result)->lm_msgtype; - } else { + if ( (*result = chkResponseList(ld, msgid, all)) != NULL ) { + rc = (*result)->lm_msgtype; + + } else { int lc_ready = 0; for ( lc = ld->ld_conns; lc != NULL; lc = nextlc ) { @@ -300,11 +301,11 @@ wait4msg( rc = try_read1msg( ld, msgid, all, lc->lconn_sb, &lc, result ); lc_ready = 1; - break; + break; } - } + } - if ( !lc_ready ) { + if ( !lc_ready ) { rc = ldap_int_select( ld, tvp ); #ifdef LDAP_DEBUG if ( rc == -1 ) {