forked from osmocom/wireshark
LDAP: SASL Buffer doesn't include Length field
SASL Buffer starts after the SASL Buffer Length field. Therefore we should only mark the bytes without the Length field. Sample capture can be found in wireshark/wireshark#15128
This commit is contained in:
parent
337bdf8eb3
commit
2e6d3b571b
|
@ -1188,7 +1188,7 @@ static void
|
|||
|
||||
proto_tree_add_uint(ldap_tree, hf_ldap_sasl_buffer_length, sasl_tvb, 0, 4, sasl_len);
|
||||
|
||||
sasl_tree = proto_tree_add_subtree(ldap_tree, sasl_tvb, 0, sasl_msg_len, ett_ldap_sasl_blob, NULL, "SASL Buffer");
|
||||
sasl_tree = proto_tree_add_subtree(ldap_tree, sasl_tvb, 4, sasl_msg_len - 4, ett_ldap_sasl_blob, NULL, "SASL Buffer");
|
||||
|
||||
if (ldap_info->auth_mech != NULL &&
|
||||
((strcmp(ldap_info->auth_mech, "GSS-SPNEGO") == 0) ||
|
||||
|
|
|
@ -4098,7 +4098,7 @@ static void
|
|||
|
||||
proto_tree_add_uint(ldap_tree, hf_ldap_sasl_buffer_length, sasl_tvb, 0, 4, sasl_len);
|
||||
|
||||
sasl_tree = proto_tree_add_subtree(ldap_tree, sasl_tvb, 0, sasl_msg_len, ett_ldap_sasl_blob, NULL, "SASL Buffer");
|
||||
sasl_tree = proto_tree_add_subtree(ldap_tree, sasl_tvb, 4, sasl_msg_len - 4, ett_ldap_sasl_blob, NULL, "SASL Buffer");
|
||||
|
||||
if (ldap_info->auth_mech != NULL &&
|
||||
((strcmp(ldap_info->auth_mech, "GSS-SPNEGO") == 0) ||
|
||||
|
|
Loading…
Reference in New Issue