From 71d75373f9df6b971ac069abfbf39be42a1caf70 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Fri, 15 Sep 2023 10:17:11 -0600 Subject: [PATCH] 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 --- res/res_pjsip_pubsub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index fe1deabfdb..318251213e 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -5171,6 +5171,7 @@ struct ast_sip_notifier test_notifier = { */ struct ast_sip_subscription_handler test_handler = { .event_name = "test", + .body_type = "", .notifier = &test_notifier, }; -- 2.47.2