return( ld->ld_errno );
/* wait for a result */
- if ( ldap_result( ld, ld->ld_msgid, 1, (struct timeval *) 0, &res )
+ if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &res )
== -1 ) {
return( ld->ld_errno ); /* ldap_result sets ld_errno */
}
return( ld->ld_errno );
/* wait for a result */
- if ( ldap_result( ld, ld->ld_msgid, 1, (struct timeval *) 0, &res )
+ if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &res )
== -1 ) {
return( ld->ld_errno ); /* ldap_result sets ld_errno */
}