[asterisk-commits] tilghman: trunk r227509 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 3 21:15:15 CST 2009


Author: tilghman
Date: Tue Nov  3 21:15:10 2009
New Revision: 227509

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=227509
Log:
Don't crash when state_interface is NULL.

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=227509&r1=227508&r2=227509
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Nov  3 21:15:10 2009
@@ -1354,8 +1354,8 @@
 			ast_copy_string(cur->membername, interface, sizeof(cur->membername));
 		if (!strchr(cur->interface, '/'))
 			ast_log(LOG_WARNING, "No location at interface '%s'\n", interface);
-		if (!strncmp(state_interface, "hint:", 5)) {
-			char *tmp = ast_strdupa(state_interface), *context = tmp;
+		if (!strncmp(cur->state_interface, "hint:", 5)) {
+			char *tmp = ast_strdupa(cur->state_interface), *context = tmp;
 			char *exten = strsep(&context, "@") + 5;
 
 			ast_copy_string(cur->state_exten, exten, sizeof(cur->state_exten));




More information about the asterisk-commits mailing list