summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/rpki-client/rrdp_notification.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/rpki-client/rrdp_notification.c b/usr.sbin/rpki-client/rrdp_notification.c
index d110896b806..57918d93bff 100644
--- a/usr.sbin/rpki-client/rrdp_notification.c
+++ b/usr.sbin/rpki-client/rrdp_notification.c
@@ -371,6 +371,10 @@ notification_done(struct notification_xml *nxml, char *last_mod)
return NOTIFICATION;
}
+ /* it makes no sense to process too many deltas */
+ if (nxml->serial - nxml->repository->serial > 300)
+ goto snapshot;
+
/* check that all needed deltas are available */
s = nxml->repository->serial + 1;
TAILQ_FOREACH(d, &nxml->delta_q, q) {