From 87e4a20bbbe3d17b10e414d30ca47e9e9aea3843 Mon Sep 17 00:00:00 2001 From: Lars Roland Date: Sat, 18 Mar 2006 04:40:11 +0000 Subject: [PATCH] Make some string comparisons case insensitive in the sip dissector svn path=/trunk/; revision=17662 --- epan/dissectors/packet-sip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index 4b92a69640..eeab0d0b07 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -1067,7 +1067,7 @@ dissect_sip_authorization_item(tvbuff_t *tvb, proto_tree *tree, gint start_offse i < array_length(auth_parameters_hf_array); i++, auth_parameter++) { - if (strcmp(name, auth_parameter->param_name) == 0) + if (strcasecmp(name, auth_parameter->param_name) == 0) { proto_tree_add_item(tree, *(auth_parameter->hf_item), tvb, equals_offset+1, current_offset-equals_offset-1, @@ -2066,7 +2066,7 @@ sip_parse_line(tvbuff_t *tvb, int offset, gint linelen, guint *token_1_lenp) token_1_len == SIP2_HDR_LEN && tvb_strneql(tvb, token_1_start, SIP2_HDR, SIP2_HDR_LEN) == 0) ) || (! strict_sip_version && ( - tvb_strneql(tvb, token_1_start, "SIP/", 4) == 0) + tvb_strncaseeql(tvb, token_1_start, "SIP/", 4) == 0) )) { /* * Yes, so this is either a Status-Line or something @@ -2121,7 +2121,7 @@ sip_parse_line(tvbuff_t *tvb, int offset, gint linelen, guint *token_1_lenp) token_3_len != SIP2_HDR_LEN || tvb_strneql(tvb, token_3_start, SIP2_HDR, SIP2_HDR_LEN) == -1) ) || (! strict_sip_version && ( - tvb_strneql(tvb, token_3_start, "SIP/", 4) == -1) + tvb_strncaseeql(tvb, token_3_start, "SIP/", 4) == -1) )) { /* * The version string isn't an SIP version 2.0 version