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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Tue Apr 15 18:53:34 2014 +0200

tm: fix condition added in previous commit testing xavp list addition to core

(cherry picked from commit 09d136d053cde9a59c6f2937b8e1fa56f590fad0)

---

 modules/tm/t_serial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_serial.c b/modules/tm/t_serial.c
index 0db4535..8fdfeaf 100644
--- a/modules/tm/t_serial.c
+++ b/modules/tm/t_serial.c
@@ -155,7 +155,7 @@ void add_contacts_avp(str *uri, str *dst_uri, str *path, 
str *sock_str,
 
        val.type = SR_XTYPE_XAVP;
        val.v.xavp = record;
-       if(xavp_add_value(&contacts_avp, &val, NULL)) {
+       if(xavp_add_value(&contacts_avp, &val, NULL)==NULL) {
                /* failed to add xavps to root list */
                LM_ERR("failed to add xavps to root list\n");
                xavp_destroy_list(&record);


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

Reply via email to