2889
2889
* Get right bracket
2891
2891
type = get_token(fp, token, MAXTOKEN);
2892
} else if (type == LABEL)
2892
} else if (type == LABEL) {
2893
2893
np->parent = strdup(token);
2895
2899
case VARIABLES:
2896
2900
np->varbinds = getVarbinds(fp, &np->varbinds);
3209
3213
print_error("Expected DESCRIPTION", token, type);
3212
type = get_token(fp, token, MAXTOKEN);
3216
type = get_token(fp, quoted_string_buffer, MAXTOKEN);
3213
3217
if (type != QUOTESTRING) {
3214
print_error("Bad DESCRIPTION", token, type);
3218
print_error("Bad DESCRIPTION", quoted_string_buffer, type);
3217
3221
if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID,
3218
3222
NETSNMP_DS_LIB_SAVE_MIB_DESCRS)) {
3219
np->description = strdup(token);
3223
np->description = strdup(quoted_string_buffer);
3221
3225
type = get_token(fp, token, MAXTOKEN);
3222
3226
if (type == REFERENCE) {
3223
type = get_token(fp, token, MAXTOKEN);
3227
type = get_token(fp, quoted_string_buffer, MAXTOKEN);
3224
3228
if (type != QUOTESTRING) {
3225
print_error("Bad REFERENCE", token, type);
3229
print_error("Bad REFERENCE", quoted_string_buffer, type);
3228
np->reference = strdup(token);
3232
np->reference = strdup(quoted_string_buffer);
3229
3233
type = get_token(fp, token, type);
3231
3235
while (type == SUPPORTS) {
3342
3346
print_error("Expected DESCRIPTION", token, type);
3345
type = get_token(fp, token, MAXTOKEN);
3349
type = get_token(fp, quoted_string_buffer, MAXTOKEN);
3346
3350
if (type != QUOTESTRING) {
3347
print_error("Bad DESCRIPTION", token, type);
3351
print_error("Bad DESCRIPTION", quoted_string_buffer, type);
3350
3354
type = get_token(fp, token, MAXTOKEN);