kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
236 stars 69 forks source link

Fix fallback code #28

Closed adam-beck closed 5 years ago

adam-beck commented 5 years ago

The fallback code was not assigning the correct scanner because it was using a comparison operator.

kylefarris commented 5 years ago

This is great. Thanks. Strange I had so many == vs === in there. And the assignment part was pretty bad. Thanks for the help!

kylefarris commented 5 years ago

Cloned onto my server and tests all pass. Merging.