-/* $OpenBSD: extern.h,v 1.120 2022/02/10 17:33:28 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.121 2022/02/14 14:46:16 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
/* Maximum allowd repositories per tal */
#define MAX_REPO_PER_TAL 1000
+/* Maximum number of delta files per RRDP notification file. */
+#define MAX_RRDP_DELTAS 300
+
#endif /* ! EXTERN_H */
-/* $OpenBSD: rrdp_notification.c,v 1.13 2022/02/03 18:19:32 claudio Exp $ */
+/* $OpenBSD: rrdp_notification.c,v 1.14 2022/02/14 14:46:16 job Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
}
/* it makes no sense to process too many deltas */
- if (nxml->serial - nxml->repository->serial > 300)
+ if (nxml->serial - nxml->repository->serial > MAX_RRDP_DELTAS)
goto snapshot;
/* check that all needed deltas are available */