[Asterisk-code-review] res_pjsip_session: Fixed NULL active media topology handle (asterisk[18])
sungtae kim
asteriskteam at digium.com
Wed Dec 23 07:45:50 CST 2020
sungtae kim has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/15270 )
Change subject: res_pjsip_session: Fixed NULL active media topology handle
......................................................................
res_pjsip_session: Fixed NULL active media topology handle
Added NULL pointer check to prevent Asterisk crash.
ASTERISK-29215
Change-Id: If07e50ea8d78cb610af9195fc13b5dca4bfcef95
---
M res/res_pjsip_session.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/70/15270/1
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 6968354..358ef96 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -2280,7 +2280,7 @@
ast_sip_session_get_name(session));
}
- if (active_media_state) {
+ if (active_media_state && active_media_state->topology) {
struct ast_sip_session_media_state *new_pending_state;
/*
* We need to check if the passed in active and pending states are equal
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15270
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: If07e50ea8d78cb610af9195fc13b5dca4bfcef95
Gerrit-Change-Number: 15270
Gerrit-PatchSet: 1
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20201223/b0bd8933/attachment.html>
More information about the asterisk-code-review
mailing list