[svn-commits] file: branch file/pjsip-outbound-publish r419847 - /team/file/pjsip-outbound-...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jul 31 07:28:32 CDT 2014
Author: file
Date: Thu Jul 31 07:28:30 2014
New Revision: 419847
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=419847
Log:
Fix a bug where refreshes would cause a crash due to expecting a body to be present.
Modified:
team/file/pjsip-outbound-publish/res/res_pjsip_publish_asterisk.c
Modified: team/file/pjsip-outbound-publish/res/res_pjsip_publish_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pjsip-outbound-publish/res/res_pjsip_publish_asterisk.c?view=diff&rev=419847&r1=419846&r2=419847
==============================================================================
--- team/file/pjsip-outbound-publish/res/res_pjsip_publish_asterisk.c (original)
+++ team/file/pjsip-outbound-publish/res/res_pjsip_publish_asterisk.c Thu Jul 31 07:28:30 2014
@@ -550,6 +550,11 @@
return -1;
}
+ /* If no body exists this is a refresh and can be ignored */
+ if (!body) {
+ return 0;
+ }
+
/* We only accept JSON for content */
if (pj_strcmp2(&body->content_type.type, "application") ||
pj_strcmp2(&body->content_type.subtype, "json")) {
More information about the svn-commits
mailing list