Skip to content

CFE-3478: Added isvalidip: function for validating IP addresses - #6486

Merged
larsewi merged 1 commit into
cfengine:masterfrom
victormlg:isvalidip
Nov 10, 2026
Merged

larsewi merged 1 commit into
cfengine:masterfrom
victormlg:isvalidip

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

Merge together: cfengine/documentation#3827

Ticket: CFE-3478
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg
victormlg marked this pull request as ready for review November 9, 2026 16:17
@larsewi

larsewi commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins please :)

@craigcomstock craigcomstock left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed something cargo-cult here that kind of bothered me... the handling of finalargs and writing code determining the quantity of args or pulling the args out.

But this is fine as-is. Maybe a ticket for refactoring/improvement as a follow up.

{
assert(fp != NULL);

if (finalargs == NULL ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we write/use a function that makes this expression more obvious to it's meaning? I know the message after is pretty clear but reading ->next and ->next->next is kind of non-obvious at a glance.

@larsewi
larsewi merged commit 60cc554 into cfengine:master Nov 10, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants