if ( oc->oc_sup_oids ) {
print_literal(ss,"SUP");
+ print_whsp(ss);
print_oids(ss,oc->oc_sup_oids);
+ print_whsp(ss);
}
switch (oc->oc_kind) {
print_literal(ss,"SYNTAX");
print_whsp(ss);
print_noidlen(ss,at->at_syntax_oid,at->at_syntax_len);
+ print_whsp(ss);
}
if ( at->at_single_value == LDAP_SCHEMA_YES ) {
char * start = *sp;
int len;
- /* Each iteration of this loops gets one decimal string */
+ /* Each iteration of this loop gets one decimal string */
while (**sp) {
if ( !isdigit(**sp) ) {
/*
len = *sp - start;
res = LDAP_MALLOC(len+1);
if (!res) {
- *code = LDAP_SCHERR_OUTOFMEM;
- return(NULL);
+ *code = LDAP_SCHERR_OUTOFMEM;
+ return(NULL);
}
strncpy(res,start,len);
res[len] = '\0';
int kind;
*len = 0;
- kind = get_token(sp, &sval);
- if ( kind != TK_BAREWORD ) {
- *code = LDAP_SCHERR_UNEXPTOKEN;
+ sval = parse_numericoid(sp, code);
+ if ( !sval ) {
return NULL;
}
if ( **sp == '{' ) {
*len = atoi(*sp);
while ( isdigit(**sp) )
(*sp)++;
- (*sp)++;
if ( **sp != '}' ) {
*code = LDAP_SCHERR_UNEXPTOKEN;
LDAP_FREE(sval);