From 8fe5b208a56e37c2a0a7f7003b430815208e04c6 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 9 Jun 2022 16:21:10 +0200 Subject: [PATCH] #14: Skip `padding` results in the API response, which can be identified by having a zero count --- password.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/password.go b/password.go index 8b37a2e..7157558 100644 --- a/password.go +++ b/password.go @@ -118,6 +118,9 @@ func (p *PwnedPassApi) ListHashesPrefix(pf string) ([]Match, *http.Response, err if err != nil { continue } + if hc == 0 { + continue + } pwMatches = append(pwMatches, Match{ Hash: fh, Count: hc,