From: Pierangelo Masarati Date: Thu, 11 Aug 2005 12:13:43 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_AC_BP~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=228af400584294396777175e545bd4b96c15ac74;p=openldap cleanup --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 7e352fa23e..0297a3788f 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -201,8 +201,8 @@ ldap_send_server_request( if ( srvlist == NULL ) { lc = ld->ld_defconn; } else { - if (( lc = find_connection( ld, srvlist, 1 )) == - NULL ) { + lc = find_connection( ld, srvlist, 1 ); + if ( lc == NULL ) { if ( (bind != NULL) && (parentreq != NULL) ) { /* Remember the bind in the parent */ incparent = 1; @@ -357,7 +357,9 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb, /* V3 rebind function */ if ( ld->ld_rebind_proc != NULL) { LDAPURLDesc *srvfunc; - if( ( srvfunc = ldap_url_dup( srvlist)) == NULL) { + + srvfunc = ldap_url_dup( srvlist ); + if ( srvfunc == NULL ) { ld->ld_errno = LDAP_NO_MEMORY; err = -1; } else {