Skip to content

Commit

Permalink
sipcapture: fix custom field variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mslehto authored and miconda committed Jul 28, 2017
1 parent e8cd764 commit c8a804f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sipcapture/sipcapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit c8a804f

Please sign in to comment.