Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pad IPs before passing them to gmp_import() #196

Merged
merged 1 commit into from Aug 21, 2023
Merged

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented Jul 20, 2023

gmp_import() expects the padded binary version of an IP address, but since we apply the IP behavior on the target->ip when fetching from the database, it is transformed into a human-readable address and passed to the gmp_import() function as is. This causes Job::isAddrInside() to always return false for an IP and thus certificates are never rescanned.

@yhabteab yhabteab added the bug Something isn't working label Jul 20, 2023
@yhabteab yhabteab added this to the 1.2.2 milestone Jul 20, 2023
@yhabteab yhabteab requested a review from lippserd July 20, 2023 12:57
@yhabteab yhabteab self-assigned this Jul 20, 2023
@cla-bot cla-bot bot added the cla/signed label Jul 20, 2023
lippserd
lippserd previously approved these changes Jul 24, 2023
@yhabteab yhabteab merged commit 10818fd into main Aug 21, 2023
7 checks passed
@yhabteab yhabteab deleted the fix-gmp-import branch August 21, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants