[asterisk-commits] jpeeler: branch group/multiparking r112522 - /team/group/multiparking/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 2 14:48:28 CDT 2008


Author: jpeeler
Date: Wed Apr  2 14:48:27 2008
New Revision: 112522

URL: http://svn.digium.com/view/asterisk?view=rev&rev=112522
Log:
fix segfault if parking lot not specified

Modified:
    team/group/multiparking/main/features.c

Modified: team/group/multiparking/main/features.c
URL: http://svn.digium.com/view/asterisk/team/group/multiparking/main/features.c?view=diff&rev=112522&r1=112521&r2=112522
==============================================================================
--- team/group/multiparking/main/features.c (original)
+++ team/group/multiparking/main/features.c Wed Apr  2 14:48:27 2008
@@ -2547,7 +2547,9 @@
 	if (data)
 		park = atoi((char *)data);
 
-	parkinglot= find_parkinglot(findparkinglotname(chan)); 	
+	parkinglot = find_parkinglot(findparkinglotname(chan)); 	
+	if (!parkinglot)
+		parkinglot = default_parkinglot;
 
 	AST_LIST_LOCK(&parkinglot->parkings);
 	AST_LIST_TRAVERSE_SAFE_BEGIN(&parkinglot->parkings, pu, list) {




More information about the asterisk-commits mailing list