Skip to content

net: lib: coap: Return an error on removing a non-existing observer #90716

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented May 28, 2025

If we're parsing a CoAP request with an observe option of '1', but there is no matching observer, return an error instead of returning a zero.

Fixes #90688

If we're parsing a CoAP request with an observe option of '1', but there is
no matching observer, return an error instead of returning a zero.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
@github-actions github-actions bot requested a review from rlubos May 28, 2025 07:39
@pdgendt pdgendt added backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch backport v4.1-branch Request backport to the v4.1-branch labels May 28, 2025
@pdgendt pdgendt requested a review from jukkar May 28, 2025 07:41
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking backport v3.7-branch Request backport to the v3.7-branch backport v4.0-branch Backport to the v4.0-branch backport v4.1-branch Request backport to the v4.1-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coap_resource_parse_observe returns 0 (register) instead of 1 (deregister) upon a deregister of an unknown observer
4 participants