slap_mask_t mask;
AttributeDescription *desc = NULL;
int rc;
- struct berval val;
+ struct berval val = BER_BVNULL,
+ *valp = NULL;
const char *text;
char accessmaskbuf[ACCESSMASK_MAXLEN];
char *accessstr;
val.bv_val[0] = '\0';
val.bv_val++;
val.bv_len = strlen( val.bv_val );
+ valp = &val;
}
accessstr = strchr( attr, '/' );
break;
}
- rc = access_allowed_mask( op, &e, desc, &val, access,
+ rc = access_allowed_mask( op, &e, desc, valp, access,
NULL, &mask );
if ( accessstr ) {