[asterisk-commits] mjordan: trunk r411669 - in /trunk: ./ res/res_hep.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 3 06:47:09 CDT 2014


Author: mjordan
Date: Thu Apr  3 06:47:03 2014
New Revision: 411669

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411669
Log:
res_hep: Fix crash when hep.conf not available

Parts of res_hep properly checked for a valid configuration object before
attempting to access the configuration. A check, however, was missed when
a packet is sent. This patch fixes the crash caused by not checking if the
configuration object is valid.
........

Merged revisions 411668 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/res/res_hep.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/res/res_hep.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_hep.c?view=diff&rev=411669&r1=411668&r2=411669
==============================================================================
--- trunk/res/res_hep.c (original)
+++ trunk/res/res_hep.c Thu Apr  3 06:47:03 2014
@@ -532,7 +532,7 @@
 	RAII_VAR(struct module_config *, config, ao2_global_obj_ref(global_config), ao2_cleanup);
 	int res;
 
-	if (!config->general->enabled) {
+	if (!config || !config->general->enabled) {
 		return 0;
 	}
 




More information about the asterisk-commits mailing list