]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_channels.c: Add null check for referred_by in ast_ari_transfer_message_create
authorSven Kube <mail@sven-kube.de>
Thu, 18 Sep 2025 06:26:33 +0000 (08:26 +0200)
committerSven Kube <mail@sven-kube.de>
Mon, 22 Sep 2025 17:26:42 +0000 (17:26 +0000)
commit8b24a226de8dba32d8226a9ec7ac99ad682fd6b6
tree6cde33c4bfcbf0a209c11a1c536c2b3b6bacb30b
parentb624b926569c9b19e18768bd97f1db23db82d11c
stasis_channels.c: Add null check for referred_by in ast_ari_transfer_message_create

When handling SIP transfers via ARI, the `referred_by` field in
`transfer_ari_state` may be null, since SIP REFER requests are not
required to include a `Referred-By` header. Without this check, a null
value caused the transfer to fail and triggered a NOTIFY with a 500
Internal Server Error.
main/stasis_channels.c