int error;
/* No elements, send error so that the snapshot is processed */
- if (deltas->capacity == 0) {
+ if (deltas->len == 0) {
pr_val_warn("There's no delta list to process.");
return -ENOENT;
}
pr_val_debug("Getting RRDP deltas from serial %lu to %lu.", from_serial,
max_serial);
- from = deltas->capacity - (max_serial - from_serial);
- for (index = from; index < deltas->capacity; index++) {
+ from = deltas->len - (max_serial - from_serial);
+ for (index = from; index < deltas->len; index++) {
error = cb(&deltas->array[index], arg);
if (error)
return error;
head_data = &delta_head->doc_data;
- pr_val_debug("Processing delta '%s'.", delta_head->doc_data.uri);
+ pr_val_debug("Processing delta '%s'.", head_data->uri);
error = uri_create_https_str_rrdp(&uri, head_data->uri,
strlen(head_data->uri));
if (error)