Module: sip-router
Branch: master
Commit: 11f7ddaf80d2865a649d35581f8d0ff06857af04
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=11f7dda…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Sep 12 12:52:33 2011 +0200
dispatcher(k): typo in ds_next_dst() dstid avp handling
- fixes wrong condition in finding dstid avp
- patch by Bogdan Pintea
---
modules_k/dispatcher/dispatch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/dispatcher/dispatch.c b/modules_k/dispatcher/dispatch.c
index b4f2ee3..f5f5242 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -1928,9 +1928,9 @@ int ds_next_dst(struct sip_msg *msg, int mode)
{
prev_avp = search_first_avp(dstid_avp_type, dstid_avp_name,
&avp_value, &st);
- if(prev_avp!=NULL)
+ if(prev_avp==NULL)
{
- LM_ERR("cannot uid for dst addr\n");
+ LM_ERR("cannot find uid avp for destination address\n");
return -1;
}
if(ds_load_replace(msg, &avp_value.s)<0)