Lines Matching refs:NULL

29  * Append a list of LDAPv3 controls to ber.  If ctrls is NULL, use default
45 if ( ctrls == NULL ) {
50 if ( ctrls == NULL || ctrls[ 0 ] == NULL ) {
60 for ( i = 0; ctrls != NULL && ctrls[i] != NULL; i++ ) {
76 for ( i = 0; ctrls[i] != NULL; i++ ) {
92 if ( c->ldctl_value.bv_val != NULL ) {
118 LDAP_SET_LDERRNO( ld, rc, NULL, NULL );
152 *controlsp = NULL;
193 if ( *controlsp == NULL ) {
199 sizeof(LDAPControl))) == NULL ) {
205 (*controlsp)[curcontrols] = NULL;
235 (newctrl->ldctl_value).bv_val = NULL;
252 *controlsp = NULL;
263 if ( ctrl != NULL ) {
264 if ( ctrl->ldctl_oid != NULL ) {
267 if ( ctrl->ldctl_value.bv_val != NULL ) {
281 if ( ctrls != NULL ) {
282 for ( i = 0; ctrls[i] != NULL; i++ ) {
300 if ( NULL == ctrl )
301 return ( NULL );
304 if ( NULL != ctrl_src ) {
305 while( NULL != ctrl_src[nctrls] ) {
312 * (nctrls + 2) ) ) == NULL ) {
313 return( NULL );
323 if ( NULL == ctrlp[i] ) {
325 return( NULL );
343 if ( *ldctrls != NULL ) {
347 if ( newctrls == NULL || newctrls[0] == NULL ) {
348 *ldctrls = NULL;
352 for ( count = 0; newctrls[ count ] != NULL; ++count ) {
357 sizeof( LDAPControl *))) == NULL ) {
358 LDAP_SET_LDERRNO( ld, LDAP_NO_MEMORY, NULL, NULL );
361 (*ldctrls)[ count ] = NULL;
363 for ( count = 0; newctrls[ count ] != NULL; ++count ) {
365 ldap_control_dup( newctrls[ count ] )) == NULL ) {
367 *ldctrls = NULL;
368 LDAP_SET_LDERRNO( ld, LDAP_NO_MEMORY, NULL, NULL );
378 * return a malloc'd copy of "ctrl" (NULL if memory allocation fails)
387 == NULL ) {
388 return( NULL );
393 return( NULL );
409 if ( NULL == ctrl_dst || NULL == ctrl_src ) {
417 == NULL ) {
422 if ( ctrl_src->ldctl_value.bv_val == NULL || len <= 0 ) {
424 ctrl_dst->ldctl_value.bv_val = NULL;
428 == NULL ) {
451 if ( ber == NULL ) {
452 bvp = NULL;
466 == NULL ) {
467 if ( bvp != NULL ) {
475 if (( (*ctrlp)->ldctl_oid = nsldapi_strdup( oid )) == NULL ) {
477 if ( bvp != NULL ) {
483 if ( bvp == NULL ) {
485 (*ctrlp)->ldctl_value.bv_val = NULL;