[asterisk-commits] eliel: branch group/data_api_gsoc2009 r211481 - /team/group/data_api_gsoc2009...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 10 13:15:04 CDT 2009
Author: eliel
Date: Mon Aug 10 13:15:00 2009
New Revision: 211481
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=211481
Log:
Fix a crash when passing an invalid path.
Modified:
team/group/data_api_gsoc2009/main/data.c
Modified: team/group/data_api_gsoc2009/main/data.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/main/data.c?view=diff&rev=211481&r1=211480&r2=211481
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Mon Aug 10 13:15:00 2009
@@ -1645,6 +1645,9 @@
/* start searching the root node name */
node_name = next_node_name(&tmp_path);
+ if (!node_name) {
+ return NULL;
+ }
provider_child = data_provider_find(root_data.container, node_name, NULL);
/* continue with the rest of the path. */
More information about the asterisk-commits
mailing list