浏览代码

async: fixed the condition to detect last action in route block

- reported by Inaki Baz Castillo
Daniel-Constantin Mierla 14 年之前
父节点
当前提交
6de46a35f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/async/async_mod.c

+ 1 - 1
modules/async/async_mod.c

@@ -145,7 +145,7 @@ static int w_async_sleep(struct sip_msg* msg, char* sec, char* str2)
 	}
 	}
 	if(ap->type==0)
 	if(ap->type==0)
 	{
 	{
-		if(ap->u.paction==NULL || ap->u.paction->next!=NULL)
+		if(ap->u.paction==NULL || ap->u.paction->next==NULL)
 		{
 		{
 			LM_ERR("cannot be executed as last action in a route block\n");
 			LM_ERR("cannot be executed as last action in a route block\n");
 			return -1;
 			return -1;