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

Fixed nil fields being dereferenced for public ips #515

Merged
merged 5 commits into from
Jun 4, 2024

Conversation

thapr0digy
Copy link

When iterating through some VMs, the PublicIPAddress field on the ipConfig struct can be nil. In these cases, we don't want to dereference and just want to go to the next configuration.

Also, the IPAddress for a nic IP could also be nil and in the same case, we do not want to dereference and add to the list. We'd rather leave it off.

olearycrew and others added 3 commits March 30, 2024 21:21
* Remove items moved to the centralized docs

* Update links

---------

Co-authored-by: Brendan O'Leary <boleary@gitlab.com>
@ehsandeep ehsandeep changed the base branch from main to dev May 4, 2024 12:50
@ehsandeep ehsandeep requested a review from Ice3man543 May 4, 2024 12:59
pkg/providers/azure/vm.go Outdated Show resolved Hide resolved
@thapr0digy thapr0digy requested a review from ehsandeep May 7, 2024 19:44
@thapr0digy
Copy link
Author

@ehsandeep let me know if those changes look good for you.

pkg/providers/azure/vm.go Outdated Show resolved Hide resolved
@Ice3man543 Ice3man543 merged commit 49645e6 into projectdiscovery:dev Jun 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants