aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sip.c
diff options
context:
space:
mode:
authorlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-18 04:40:11 +0000
committerlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-18 04:40:11 +0000
commite39c08df8915d35c6bc9b51e93a1f0f26ef15756 (patch)
treebaf7f3c5542695858c74acf773e0234c63042f5a /epan/dissectors/packet-sip.c
parent4ca52b18c093f19434e58b7d44ecc98008321417 (diff)
Make some string comparisons case insensitive in the sip dissector
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17662 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r--epan/dissectors/packet-sip.c6
1 files 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