Skip to content

fix: crash - null check on event origin#7047

Merged
mholt merged 3 commits intocaddyserver:masterfrom
suxatcode:master
Jun 5, 2025
Merged

fix: crash - null check on event origin#7047
mholt merged 3 commits intocaddyserver:masterfrom
suxatcode:master

Conversation

@suxatcode
Copy link
Contributor

Added a null check for event origins, see this #7026 issue.

@CLAassistant
Copy link

CLAassistant commented Jun 2, 2025

CLA assistant check
All committers have signed the CLA.

@suxatcode suxatcode marked this pull request as ready for review June 4, 2025 12:31
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thank you!

@mholt mholt enabled auto-merge (squash) June 5, 2025 18:50
@mholt mholt linked an issue Jun 5, 2025 that may be closed by this pull request
@mholt mholt merged commit 7099892 into caddyserver:master Jun 5, 2025
20 checks passed
@francislavoie francislavoie added this to the v2.10.1 milestone Aug 22, 2025
mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 2025
* fix: crash - null check on event origin

* chore: use accessor instead of property
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.

calling event.CloudEvent() inside caddyevents.Handler causes panic

4 participants