Ver código fonte

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

Daniel-Constantin Mierla 11 anos atrás
pai
commit
09d136d053
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/tm/t_serial.c

+ 1 - 1
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);