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 <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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)


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to