[svn-commits] eliel: branch eliel/data_retrieval r189075 - /team/eliel/data_retrieval/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Apr 17 14:21:08 CDT 2009


Author: eliel
Date: Fri Apr 17 14:21:04 2009
New Revision: 189075

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=189075
Log:
Check for NULL on the passed path a ast_data handler.

Modified:
    team/eliel/data_retrieval/main/data.c

Modified: team/eliel/data_retrieval/main/data.c
URL: http://svn.digium.com/svn-view/asterisk/team/eliel/data_retrieval/main/data.c?view=diff&rev=189075&r1=189074&r2=189075
==============================================================================
--- team/eliel/data_retrieval/main/data.c (original)
+++ team/eliel/data_retrieval/main/data.c Fri Apr 17 14:21:04 2009
@@ -479,6 +479,10 @@
 	struct ast_xml_node *node;
 	char *rpath, *node_name;
 
+	if (!path || !handler) {
+		return NULL;
+	}
+
 	node = ast_xml_get_root((struct ast_xml_doc *) handler);
 
 	rpath = ast_strdupa(path);




More information about the svn-commits mailing list