[asterisk-commits] russell: trunk r38118 -
/trunk/apps/app_directed_pickup.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Jul 22 22:21:00 MST 2006
Author: russell
Date: Sun Jul 23 00:20:59 2006
New Revision: 38118
URL: http://svn.digium.com/view/asterisk?rev=38118&view=rev
Log:
fix a seg fault in this application if no context paramater is given
(issue #7571)
Modified:
trunk/apps/app_directed_pickup.c
Modified: trunk/apps/app_directed_pickup.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_directed_pickup.c?rev=38118&r1=38117&r2=38118&view=diff
==============================================================================
--- trunk/apps/app_directed_pickup.c (original)
+++ trunk/apps/app_directed_pickup.c Sun Jul 23 00:20:59 2006
@@ -83,7 +83,7 @@
*context++ = '\0';
/* If the context is the pickup mark, iterate through all channels finding the right origin one */
- if (!strcmp(context, PICKUPMARK)) {
+ if (context && !strcmp(context, PICKUPMARK)) {
while ((origin = ast_channel_walk_locked(origin))) {
if (origin) {
tmp2 = pbx_builtin_getvar_helper(origin, PICKUPMARK);
More information about the asterisk-commits
mailing list