diff --git a/cve-vulner-manager/cve-ddd/app/hotpatch.go b/cve-vulner-manager/cve-ddd/app/hotpatch.go index 3791f8ff0da4fe96bda3d9bdd9c61b4f5c315671..d3dd3d6447468374d1c9ae946f2a88455ff83902 100644 --- a/cve-vulner-manager/cve-ddd/app/hotpatch.go +++ b/cve-vulner-manager/cve-ddd/app/hotpatch.go @@ -117,12 +117,12 @@ func (h *hotPatchService) generateBulletinId() (int, error) { return 0, err } - thisYear := util.Year() - + maxID = strings.TrimSpace(maxID) if maxID == "" { return 1000, nil } + thisYear := util.Year() split := strings.Split(strings.Trim(maxID, ".xml"), "-") if split[3] != strconv.Itoa(thisYear) { return 1000, nil