if ( ld == NULL || value == NULL ||
pagesize < 1 || pagesize > LDAP_MAXINT )
{
- ld->ld_errno = LDAP_PARAM_ERROR;
- return ld->ld_errno;
+ if ( ld )
+ ld->ld_errno = LDAP_PARAM_ERROR;
+ return LDAP_PARAM_ERROR;
}
assert( LDAP_VALID( ld ) );
ber_int_t count;
if ( ld == NULL || ctrl == NULL || cookie == NULL ) {
- ld->ld_errno = LDAP_PARAM_ERROR;
- return ld->ld_errno;
+ if ( ld )
+ ld->ld_errno = LDAP_PARAM_ERROR;
+ return LDAP_PARAM_ERROR;
}
/* Create a BerElement from the berval returned in the control. */
ber_tag_t tag;
if ( ld == NULL || keyList == NULL || value == NULL ) {
- ld->ld_errno = LDAP_PARAM_ERROR;
- return ld->ld_errno;
+ if ( ld )
+ ld->ld_errno = LDAP_PARAM_ERROR;
+ return LDAP_PARAM_ERROR;
}
assert( LDAP_VALID( ld ) );
ber_len_t berLen;
if (ld == NULL) {
- ld->ld_errno = LDAP_PARAM_ERROR;
- return(ld->ld_errno);
+ return LDAP_PARAM_ERROR;
}
if (ctrl == NULL) {
BerElement *ber;
if ( ld == NULL || vlvinfop == NULL || value == NULL ) {
- ld->ld_errno = LDAP_PARAM_ERROR;
- return ld->ld_errno;
+ if ( ld )
+ ld->ld_errno = LDAP_PARAM_ERROR;
+ return LDAP_PARAM_ERROR;
}
assert( LDAP_VALID( ld ) );