[asterisk-commits] jpeeler: trunk r192853 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 6 17:02:49 CDT 2009


Author: jpeeler
Date: Wed May  6 17:02:46 2009
New Revision: 192853

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192853
Log:
If no extension was found in the pattern tree, don't crash.

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/pbx.c?view=diff&rev=192853&r1=192852&r2=192853
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed May  6 17:02:46 2009
@@ -1999,7 +1999,7 @@
 				m0 = &m1->next_char;
 			}
 			if (!(*(s1 + 1))) {
-				if (m2) {
+				if (m2 && m2->exten) {
 					ast_log(LOG_WARNING, "Found duplicate exten. Had %s found %s\n", m2->exten->exten, e1->exten);
 				}
 				m1->deleted = 0;




More information about the asterisk-commits mailing list