mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 22:30:28 +00:00
res_pjsip_pubsub: Add body_type to test_handler for unit tests
The ast_sip_subscription_handler "test_handler" used for the unit
tests didn't set "body_type" so the NULL value was causing
a SEGV in build_subscription_tree(). It's now set to "".
Resolves: #335
(cherry picked from commit 71d75373f9)
This commit is contained in:
committed by
Asterisk Development Team
parent
e2c3fd8d41
commit
58c8d60f4b
@@ -5171,6 +5171,7 @@ struct ast_sip_notifier test_notifier = {
|
|||||||
*/
|
*/
|
||||||
struct ast_sip_subscription_handler test_handler = {
|
struct ast_sip_subscription_handler test_handler = {
|
||||||
.event_name = "test",
|
.event_name = "test",
|
||||||
|
.body_type = "",
|
||||||
.notifier = &test_notifier,
|
.notifier = &test_notifier,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user