Lines Matching refs:NULL

65  *    these by passing a NULL "ld" to ldap_set_option().  Everything in
84 __declspec ( thread ) char *nsldapi_gmatched = NULL;
85 __declspec ( thread ) char *nsldapi_gldaperror = NULL;
94 if ( (*mp = CreateMutex(NULL, FALSE, NULL)) == NULL )
105 if ( (mutexp = malloc( sizeof(LDAP_MUTEX_T) )) != NULL ) {
106 pthread_mutex_init( mutexp, NULL );
160 if ( LDMatched != NULL )
164 if ( LDError != NULL )
176 if ( nsldapi_gmatched != NULL )
180 if ( nsldapi_gldaperror != NULL )
195 if ( (mutexp = malloc( sizeof(pthread_mutex_t) )) != NULL ) {
196 pthread_mutex_init( mutexp, NULL );
216 if (le == NULL) {
223 if (le == NULL) {
230 if ( le->le_matched != NULL ) {
235 if ( le->le_errmsg != NULL ) {
247 if (le != NULL) {
248 if ( matched != NULL ) {
251 if ( errmsg != NULL ) {
256 if ( matched != NULL )
257 *matched = NULL;
258 if ( errmsg != NULL )
259 *errmsg = NULL;
330 nsldapi_ld_defaults.ld_def_sasl_mech = NULL;
331 nsldapi_ld_defaults.ld_def_sasl_realm = NULL;
332 nsldapi_ld_defaults.ld_def_sasl_authcid = NULL;
333 nsldapi_ld_defaults.ld_def_sasl_authzid = NULL;
354 if (ldap_set_option( NULL, LDAP_OPT_THREAD_FN_PTRS,
361 if (ldap_set_option( NULL, LDAP_OPT_EXTRA_THREAD_FN_PTRS,
381 * if ( ldap_version(NULL) < 100 )
390 if ( NULL != ver )
411 * be used for future communication is returned on success, NULL on failure.
427 if (( ld = ldap_init( host, port )) == NULL ) {
428 return( NULL );
434 ldap_ld_free( ld, NULL, NULL, 0 );
435 return( NULL );
440 ( ld->ld_host == NULL ) ? "(null)" : ld->ld_host, 0, 0 );
448 * future communication is returned on success, NULL on failure.
472 return( NULL );
477 if ( (ld = (LDAP*)NSLDAPI_MALLOC( sizeof(struct ldap) )) == NULL ) {
478 return( NULL );
483 if ( nsldapi_ld_defaults.ld_io_fns_ptr != NULL ) {
485 sizeof( struct ldap_io_fns ))) == NULL ) {
487 return( NULL );
494 if ( ld->ld_extnewhandle_fn != NULL ) {
502 return( NULL );
507 if (( ld->ld_sbp = ber_sockbuf_alloc()) == NULL ||
508 ( defhost != NULL &&
509 ( ld->ld_defhost = nsldapi_strdup( defhost )) == NULL ) ||
510 ((ld->ld_mutex = (void **) NSLDAPI_CALLOC( LDAP_MAX_LOCK, sizeof(void *))) == NULL )) {
511 if ( ld->ld_sbp != NULL ) {
514 if( ld->ld_mutex != NULL ) {
518 return( NULL );
522 if ( ld->ld_extread_fn != NULL || ld->ld_extwrite_fn != NULL ) {
531 lberiofns.lbextiofn_socket_arg = NULL;
544 ld = NULL;
545 return( NULL );
564 if ( ld != &nsldapi_ld_defaults && ld->ld_mutex != NULL ) {
579 if ( ld != &nsldapi_ld_defaults && ld->ld_mutex != NULL ) {
593 NULL || ( ld->ld_defhost != NULL && ( srv->lsrv_host =
594 nsldapi_strdup( ld->ld_defhost )) == NULL )) {
595 LDAP_SET_LDERRNO( ld, LDAP_NO_MEMORY, NULL, NULL );
607 == NULL ) {
608 if ( ld->ld_defhost != NULL ) {
629 * Note that a NULL or zero-length hostlist causes the host "127.0.0.1" to
637 if ( NULL == hostp || NULL == portp || NULL == statusp ) {
641 if ( NULL == hostlist || *hostlist == '\0' ) {
643 if ( NULL == *hostp ) {
647 *statusp = NULL;
652 if ( NULL == *statusp ) {
656 if ( NULL == (*statusp)->lhs_hostlist ) {
668 * to NULL.
677 if ( NULL == hostp || NULL == portp ) {
681 if ( NULL == status || NULL == status->lhs_nexthost ) {
682 *hostp = NULL;
696 if ( NULL != ( q = strchr( status->lhs_nexthost, ' ' ))) {
699 if ( NULL == *hostp ) {
707 if ( NULL == *hostp ) {
710 status->lhs_nexthost = NULL;
716 if ( squarebrackets && NULL != ( q = strchr( *hostp, ']' ))) {
723 if ( NULL != ( q = strchr( q, ':' ))) {
737 if ( NULL != status ) {
738 if ( NULL != status->lhs_hostlist ) {
755 return( nsldapi_memalloc_fns.ldapmem_malloc == NULL ?
764 return( nsldapi_memalloc_fns.ldapmem_calloc == NULL ?
773 return( nsldapi_memalloc_fns.ldapmem_realloc == NULL ?
782 if ( nsldapi_memalloc_fns.ldapmem_free == NULL ) {
790 /* if s is NULL, returns NULL */
796 if ( s == NULL ||
797 (p = (char *)NSLDAPI_MALLOC( strlen( s ) + 1 )) == NULL )
798 return( NULL );