Skip to content

Update condition for empty hostnames#13

Merged
DavidGoodwin merged 1 commit intoDavidGoodwin:masterfrom
Rikstone:master
Oct 13, 2025
Merged

Update condition for empty hostnames#13
DavidGoodwin merged 1 commit intoDavidGoodwin:masterfrom
Rikstone:master

Conversation

@Rikstone
Copy link
Copy Markdown

In some cases, we get XML like

<hostnames>
</hostnames>

Because the check doesn't allow us to proceed further in this case, the file can't be parsed.

As far as I can see, nothing should break, because almost immediately we have isset for hostname

isset($xmlHost->hostnames->hostname)

@DavidGoodwin
Copy link
Copy Markdown
Owner

I can replicate the <hostnames></hostnames> XML if i try and scan 127.0.0.2. I'll merge this and then add a unit test...

@DavidGoodwin DavidGoodwin merged commit 75d318c into DavidGoodwin:master Oct 13, 2025
DavidGoodwin added a commit that referenced this pull request Oct 13, 2025
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.

2 participants