Module: sip-router
Branch: master
Commit: 09d136d053cde9a59c6f2937b8e1fa56f590fad0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=09d136d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 15 18:53:34 2014 +0200
tm: fix condition added in previous commit testing xavp list addition to core
---
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);