Module: kamailio
Branch: master
Commit: f8fdd336504702d9353b1ab7a1ffabca5ff4723e
URL:
https://github.com/kamailio/kamailio/commit/f8fdd336504702d9353b1ab7a1ffabc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-01-10T13:28:50+01:00
rtp_media_server: return or continue on null values inside rms_dialog_action_check()
---
Modified: src/modules/rtp_media_server/rtp_media_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f8fdd336504702d9353b1ab7a1ffabc…
Patch:
https://github.com/kamailio/kamailio/commit/f8fdd336504702d9353b1ab7a1ffabc…
---
diff --git a/src/modules/rtp_media_server/rtp_media_server.c
b/src/modules/rtp_media_server/rtp_media_server.c
index ac1e8ba73b..07a2eb83a6 100644
--- a/src/modules/rtp_media_server/rtp_media_server.c
+++ b/src/modules/rtp_media_server/rtp_media_server.c
@@ -240,12 +240,16 @@ static rms_dialog_info_t *rms_stop(rms_dialog_info_t *di)
static rms_dialog_info_t *rms_dialog_action_check(rms_dialog_info_t *di)
{
rms_action_t *a;
- if (!di)
- LM_ERR("Dialog info NULL\n");
+ if (!di) {
+ LM_ERR("Dialog info NULL\n");
+ return NULL;
+ }
clist_foreach(&di->action, a, next)
{
- if (!a)
+ if (!a) {
LM_ERR("dialog action NULL\n");
+ continue;
+ }
if(a->type == RMS_HANGUP) {
LM_INFO("dialog action RMS_HANGUP [%s]\n", di->callid.s);