From 47371520ee486cb295581c822a32ea59fdac2698 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Sat, 27 Jun 2026 14:36:45 +0200 Subject: [PATCH] MT#55283 Set valid decrypt fields for non-forwarding kernel targets 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``. Closes #2126 Change-Id: I5aa2b490c65e5d97dc9b2ddd24c09f9ae7b63892 --- daemon/media_socket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 8290ed86f..244d33c10 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -1629,6 +1629,9 @@ static const char *kernelize_target(kernelize_state *s, struct packet_stream *st // nothing to forward s->non_forwarding = true; s->blackhole = true; + reti->non_forwarding = 1; + reti->decrypt.cipher = REC_NULL; + reti->decrypt.hmac = REH_NULL; return NULL; }