fix(wordpress): wpscan.com unmarshal error (#1106)

* refactor(report): remove Integration.apply

* add an err check

* fix(wordpress): wpscan.com unmarshal error

* fix warnings
This commit is contained in:
Kota Kanbe
2020-12-29 07:11:04 +09:00
committed by GitHub
parent aaea15e516
commit f4253d74ae
3 changed files with 57 additions and 99 deletions

View File

@@ -494,7 +494,7 @@ func (o *redhatBase) yumPs() error {
pidListenPorts := map[string][]models.PortStat{}
stdout, err = o.lsOfListen()
if err != nil {
return xerrors.Errorf("Failed to ls of: %w", err)
return xerrors.Errorf("Failed to lsof: %w", err)
}
portPids := o.parseLsOf(stdout)
for ipPort, pids := range portPids {