Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2e876b commit 541f2beCopy full SHA for 541f2be
signature.go
@@ -144,9 +144,12 @@ func MD5Check(r io.Reader) error {
144
if err != nil {
145
return err
146
}
147
- payloadSize := sigheader.GetTag(1000).Int64() // RPMSIGTAG_SIZE
+ payloadSize := sigheader.GetTag(270).Int64() // RPMSIGTAG_LONGSIGSIZE
148
if payloadSize == 0 {
149
- return errorf("tag not found: RPMSIGTAG_SIZE")
+ payloadSize = sigheader.GetTag(1000).Int64() // RPMSIGTAG_SIGSIZE
150
+ if payloadSize == 0 {
151
+ return fmt.Errorf("tag not found: RPMSIGTAG_SIZE")
152
+ }
153
154
expect := sigheader.GetTag(1004).Bytes() // RPMSIGTAG_MD5
155
if expect == nil {
0 commit comments