Lines Matching defs:new

270 	LDAPMessage	*new;
281 if (( new = (LDAPMessage *) calloc( 1, sizeof(LDAPMessage) ))
283 if (( new->lm_ber = alloc_ber_with_options( ld )) == NULLBER ) {
284 free( (char *)new );
288 if (( new->lm_ber->ber_buf = (char *) malloc( len ))
290 ber_free( new->lm_ber, 0 );
291 free( (char *)new );
295 SAFEMEMCPY( new->lm_ber->ber_buf, request->ber_buf, len );
296 new->lm_ber->ber_ptr = new->lm_ber->ber_buf;
297 new->lm_ber->ber_end = new->lm_ber->ber_buf + len;
298 new->lm_msgid = ld->ld_msgid;
299 new->lm_msgtype = (int) msgtype;;
300 new->lm_next = ld->ld_cache->lc_requests;
301 ld->ld_cache->lc_requests = new;
311 LDAPMessage *m, **mp, *req, *new, *prev;
352 if (( new = msg_dup( result )) != NULLMSG ) {
353 new->lm_chain = NULLMSG;
354 m->lm_chain = new;
419 * queue with the correct (new) msgid so that subsequent ldap_result calls
425 LDAPMessage *m, *new, *prev, *next;
481 if (( new = msg_dup( m )) == NULLMSG ) {
488 new->lm_msgid = ld->ld_msgid;
489 new->lm_chain = NULLMSG;
491 new->lm_next = ld->ld_responses;
492 ld->ld_responses = new;
495 prev->lm_chain = new;
497 prev = new;
499 new->lm_msgtype, 0, 0 );
536 LDAPMessage *new;
539 if (( new = (LDAPMessage *)malloc( sizeof(LDAPMessage))) != NULL ) {
540 *new = *msg; /* struct copy */
541 if (( new->lm_ber = ber_dup( msg->lm_ber )) == NULLBER ) {
542 free( (char *)new );
546 if (( new->lm_ber->ber_buf = (char *) malloc( len )) == NULL ) {
547 ber_free( new->lm_ber, 0 );
548 free( (char *)new );
551 SAFEMEMCPY( new->lm_ber->ber_buf, msg->lm_ber->ber_buf, len );
553 new->lm_ber->ber_ptr = new->lm_ber->ber_buf +
555 new->lm_ber->ber_end = new->lm_ber->ber_buf + len;
558 return( new );