Skip to content

fix: make scanner port optional - #460

Closed
ozgen wants to merge 1 commit into
mainfrom
fix/optional-scanner-port
Closed

ozgen wants to merge 1 commit into
mainfrom
fix/optional-scanner-port

Conversation

@ozgen

@ozgen ozgen commented Sep 24, 2026

Copy link
Copy Markdown
Member

What

Make the scanner port optional in GSAD.

Only validate the port when a value is provided.

Why

Sensor scanners do not require users to provide a port, so GSAD should allow the port field to be omitted.

References

GEA-2095

Only validate the scanner port when it is provided.

This allows sensor scanners to be created without requiring a port value.
@ozgen
ozgen requested review from a team as code owners September 24, 2026 06:51
@greenbonebot
greenbonebot enabled auto-merge (rebase) September 24, 2026 06:51
Comment thread src/gsad_gmp.c
"<ca_pub>%s</ca_pub>"
"<credential id=\"%s\"/>"
"</create_scanner>",
name, comment, host, port, type, ca_pub,

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.

If port can be NULL then I think these two gmpfs should have NULL checks on port

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

you're right that I will handle this on GSA side and closing this PR

@ozgen ozgen closed this Sep 24, 2026
auto-merge was automatically disabled September 24, 2026 08:39

Pull request was closed

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