If somehow the serial is too long, still handle day rollover

This commit is contained in:
Jamie Cameron
2025-02-08 18:15:26 -08:00
parent d0cc38f320
commit ed157300fc

View File

@ -943,7 +943,7 @@ else {
sub compute_serial
{
my ($old) = @_;
if ($config{'soa_style'} == 1 && $old =~ /^(\d{8})(\d\d)$/) {
if ($config{'soa_style'} == 1 && $old =~ /^(\d{8})(\d+)$/) {
if ($1 >= &date_serial()) {
if ($2 >= 99) {
# Have to roll over to next day