浏览代码

xmlrpc: updates for new signature of via_builder()

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
d9b1f42718
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/modules/xmlrpc/http.c
  2. 1 1
      src/modules/xmlrpc/xmlrpc.c

+ 1 - 1
src/modules/xmlrpc/http.c

@@ -172,7 +172,7 @@ int create_via(sip_msg_t* msg, char* s1, char* s2)
 	hp.port = &port;
 
 	init_dst_from_rcv(&dst, &msg->rcv);
-	via = via_builder(&via_len, &dst, 0, 0, &hp);
+	via = via_builder(&via_len, NULL, &dst, 0, 0, &hp);
 	if (!via) {
 		ERR("Unable to build Via header field\n");
 		return -1;

+ 1 - 1
src/modules/xmlrpc/xmlrpc.c

@@ -2240,7 +2240,7 @@ static char* http_xmlrpc2sip(sip_msg_t* msg, int* new_msg_len)
 	hp.host = &ip;
 	hp.port = &port;
 	init_dst_from_rcv(&dst, &msg->rcv);
-	via = via_builder(&via_len, &dst, 0, 0, &hp);
+	via = via_builder(&via_len, NULL, &dst, 0, 0, &hp);
 	if (via == 0) {
 		DEBUG("failed to build via\n");
 		return 0;