Module: sip-router Branch: master Commit: 6de46a35f0c70c04a6871f5fcc3c31c2172523b1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6de46a35...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Thu Aug 4 12:04:59 2011 +0200
async: fixed the condition to detect last action in route block
- reported by Inaki Baz Castillo
---
modules/async/async_mod.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c index 38374ce..17c7179 100644 --- a/modules/async/async_mod.c +++ b/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->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"); return -1;