Module: kamailio
Branch: master
Commit: ebe0466a35b9ef3ed1f754c8cb63d5df766ae499
URL:
https://github.com/kamailio/kamailio/commit/ebe0466a35b9ef3ed1f754c8cb63d5d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-01-10T13:26:15+01:00
rtp_media_server: safety check on error inside rms_dialog_new()
---
Modified: src/modules/rtp_media_server/rms_dialog_info.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ebe0466a35b9ef3ed1f754c8cb63d5d…
Patch:
https://github.com/kamailio/kamailio/commit/ebe0466a35b9ef3ed1f754c8cb63d5d…
---
diff --git a/src/modules/rtp_media_server/rms_dialog_info.c
b/src/modules/rtp_media_server/rms_dialog_info.c
index 824eca3f91..ea0384e769 100644
--- a/src/modules/rtp_media_server/rms_dialog_info.c
+++ b/src/modules/rtp_media_server/rms_dialog_info.c
@@ -274,7 +274,9 @@ rms_dialog_info_t *rms_dialog_new(struct sip_msg *msg)
return si;
error:
LM_ERR("can not create dialog info.\n");
- rms_dialog_free(si);
+ if(si) {
+ rms_dialog_free(si);
+ }
return NULL;
}