mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
refine previous commits
This commit is contained in:
parent
6275c6ecdc
commit
54b621658b
1 changed files with 10 additions and 2 deletions
|
|
@ -215,7 +215,7 @@ do_bind( char *uri, char *dn, struct berval *pass, int maxloop, int force, int n
|
||||||
if ( ldp ) {
|
if ( ldp ) {
|
||||||
*ldp = ld;
|
*ldp = ld;
|
||||||
|
|
||||||
} else if (ld != NULL ) {
|
} else if ( ld != NULL ) {
|
||||||
ldap_unbind_ext( ld, NULL, NULL );
|
ldap_unbind_ext( ld, NULL, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -309,7 +309,7 @@ do_base( char *uri, struct berval *base, struct berval *pass, int maxloop, int f
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ok, got list of RDNs, now start binding to each */
|
/* Ok, got list of RDNs, now start binding to each */
|
||||||
for (i=0; i<maxloop; i++) {
|
for ( i = 0; i < maxloop; i++ ) {
|
||||||
char dn[BUFSIZ], *ptr;
|
char dn[BUFSIZ], *ptr;
|
||||||
int j, k;
|
int j, k;
|
||||||
|
|
||||||
|
|
@ -358,5 +358,13 @@ do_base( char *uri, struct berval *base, struct berval *pass, int maxloop, int f
|
||||||
fprintf( stderr, "Done %d Binds in %ld.%06ld seconds.\n", i,
|
fprintf( stderr, "Done %d Binds in %ld.%06ld seconds.\n", i,
|
||||||
(long) end.tv_sec, (long) end.tv_usec );
|
(long) end.tv_sec, (long) end.tv_usec );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( rdns ) {
|
||||||
|
for ( i = 0; i < nrdns; i++ ) {
|
||||||
|
free( rdns[i].bv_val );
|
||||||
|
}
|
||||||
|
free( rdns );
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue