Skip to content

Set valid decrypt fields for non-forwarding kernel targets#2126

Open
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:non-forward-no-crypto
Open

Set valid decrypt fields for non-forwarding kernel targets#2126
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:non-forward-no-crypto

Conversation

@alexbakker

Copy link
Copy Markdown
Contributor

In case of the reverse direction of a subscription, no stream handler will be found. Previously, the decrypt struct was left zeroed, the kernel module rejected this with EINVAL and the daemon logged:

[core] Failed to push relay stream to kernel: Invalid argument

This patch sets REC_NULL/REH_NULL and marks the target as non-forwarding, matching what is expected by validate_srtp.

In case of the reverse direction of a subscription, no stream handler will be found. Previously, the
decrypt struct was left zeroed, the kernel module rejected this with ``EINVAL`` and the daemon logged:

```
[core] Failed to push relay stream to kernel: Invalid argument
```

This patch sets ``REC_NULL``/``REH_NULL`` and marks the target as non-forwarding, matching what is
expected by ``validate_srtp``.
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.

1 participant