3 @@ -120,6 +120,9 @@ static int encode_snmp_element_oid(value
7 + if (oid_value == NULL) {
10 buffer = value->data.buffer;
12 for (i = 2; i < oid_value->subid_list_length; i++) {
13 @@ -293,6 +296,8 @@ static int mib_build_entry(const oid_t *
14 value->data.encoded_length = 0;
15 value->data.buffer = malloc(value->data.max_length);
16 if (encode_snmp_element_oid(value, oid_aton((const char *)default_value)) == -1) {
17 + lprintf(LOG_ERR, "could not create MIB entry '%s.%d.%d': invalid oid '%s'\n",
18 + oid_ntoa(prefix), column, row, (char *)default_value);