[sr-dev] git:3.1: dispatcher(k): typo in ds_next_dst() dstid avp handling

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 12 12:57:01 CEST 2011


Module: sip-router
Branch: 3.1
Commit: cd1290e5602f06be16589cde193d1443aee4dcd2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cd1290e5602f06be16589cde193d1443aee4dcd2

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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
(cherry picked from commit 11f7ddaf80d2865a649d35581f8d0ff06857af04)

---

 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 79bcc57..e16277c 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -1954,9 +1954,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)




More information about the sr-dev mailing list