浏览代码

sipcapture: fix custom field variable naming

(cherry picked from commit c8a804f5e3c3b12b64871d3989a87d79d8627afe)
Mikko Lehto 8 年之前
父节点
当前提交
1c944f3fb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/sipcapture/sipcapture.c

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

@@ -1887,7 +1887,7 @@ static int sip_capture(struct sip_msg *msg, str *_table, _capture_mode_data_t *
 	else { EMPTY_STR(sco.custom1); }
 	
 	/* Custom - field2 */
-	if(custom_field3_header.len > 0 && (tmphdr[5] = get_hdr_by_name(msg,custom_field2_header.s, custom_field2_header.len)) != NULL) {
+	if(custom_field2_header.len > 0 && (tmphdr[5] = get_hdr_by_name(msg,custom_field2_header.s, custom_field2_header.len)) != NULL) {
 		sco.custom2 =  tmphdr[5]->body;
 	}
 	else { EMPTY_STR(sco.custom2); }