diff --git a/scan/redhat.go b/scan/redhat.go index ae041880..cdc9d05b 100644 --- a/scan/redhat.go +++ b/scan/redhat.go @@ -541,6 +541,9 @@ func (o *redhat) parseAllChangelog(allChangelog string) (map[string]*string, err } } now, err = o.isRpmPackageNameLine(orglines[i]) + if err != nil { + return nil, err + } if prev && now { tmpline = fmt.Sprintf("%s, %s", tmpline, orglines[i]) continue