Fix a bug of sending to closed socket while oval access via HTTP #578 (#579)

This commit is contained in:
Kota Kanbe
2018-01-05 10:12:21 +09:00
committed by GitHub
parent cc28bf4ae2
commit 47498bbf23

View File

@@ -109,15 +109,14 @@ func getDefsByPackNameViaHTTP(r *models.ScanResult) (
NewVersionRelease: pack.FormatVer(),
isSrcPack: false,
}
for _, pack := range r.SrcPackages {
reqChan <- request{
packName: pack.Name,
binaryPackNames: pack.BinaryNames,
versionRelease: pack.Version,
isSrcPack: true,
}
}
for _, pack := range r.SrcPackages {
reqChan <- request{
packName: pack.Name,
binaryPackNames: pack.BinaryNames,
versionRelease: pack.Version,
isSrcPack: true,
}
}
}()