[asterisk-commits] file: branch group/pimp_my_sip r382201 - /team/group/pimp_my_sip/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 27 11:38:07 CST 2013
Author: file
Date: Wed Feb 27 11:38:04 2013
New Revision: 382201
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382201
Log:
Fix a bug where an INVITE without SDP would cause a crash.
Modified:
team/group/pimp_my_sip/res/res_sip_session.c
Modified: team/group/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_session.c?view=diff&rev=382201&r1=382200&r2=382201
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Wed Feb 27 11:38:04 2013
@@ -785,7 +785,7 @@
return;
};
- if ((sdp_info = pjsip_rdata_get_sdp_info(rdata)) && (sdp_info->sdp_err == PJ_SUCCESS)) {
+ if ((sdp_info = pjsip_rdata_get_sdp_info(rdata)) && (sdp_info->sdp_err == PJ_SUCCESS) && sdp_info->sdp) {
if (handle_incoming_sdp(session, sdp_info->sdp)) {
if (pjsip_inv_initial_answer(inv_session, rdata, 500, NULL, NULL, &tdata) == PJ_SUCCESS) {
ast_sip_session_send_response(session, tdata);
More information about the asterisk-commits
mailing list