zmap / zdns

Fast DNS Lookup Library and CLI Tool
Apache License 2.0
891 stars 121 forks source link

Fix bug in cachehash that wouldn't update a key-value pair if the key was already in the cache #376

Closed phillip-stephens closed 2 months ago

phillip-stephens commented 2 months ago

Context

While working on adding linters, govet spotted that the assignment to kv here within the Add function was ineffectual.

Since this is very core logic, I split this off into a separate PR so it can get focused attention.

Changes