Lines Matching defs:ldm
483 LDAPMessage *chain, *prev, *ldm;
487 ldm = chain = prev = NULLMSG;
494 if (( ldm = (LDAPMessage *)calloc( 1, sizeof(LDAPMessage)))
495 == NULL || ( ldm->lm_ber = alloc_ber_with_options( ld ))
500 ldm->lm_msgid = msgid;
501 ldm->lm_msgtype = tag;
511 if ( ber_printf( ldm->lm_ber, "to", tag, bv->bv_val,
540 if ( ber_printf( ldm->lm_ber, "t{so}", tag, dn, bv->bv_val,
556 ldm->lm_ber->ber_end = ldm->lm_ber->ber_ptr;
557 ldm->lm_ber->ber_ptr = ldm->lm_ber->ber_buf;
562 ldm->lm_msgid, ldm->lm_msgtype );
563 ber_dump( ldm->lm_ber, 1 );
569 add_result_to_cache( ld, ldm );
574 chain = ldm;
576 prev->lm_chain = ldm;
578 prev = ldm;
579 ldm = NULL;
583 if ( ldm != NULL ) {
584 if ( ldm->lm_ber != NULLBER ) {
585 ber_free( ldm->lm_ber, 1 );
587 free( ldm );