Corrected check for attribute flag bits.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 23 Sep 2010 07:42:20 +0000 (07:42 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 23 Sep 2010 07:42:20 +0000 (07:42 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34203 f5534014-38df-0310-8fa8-9805f1628bb7

asn1/ess/packet-ess-template.c
epan/dissectors/packet-ess.c

index d3a7f2f174b92dbba9e0869204775968400db871..a7bfa4c124bf0c0229261ddd9d4925e5acf483df 100644 (file)
@@ -129,7 +129,7 @@ ess_dissect_attribute_flags (tvbuff_t *tvb, asn1_ctx_t *actx)
 
     if ((strcmp (u->oid, object_identifier_id) == 0) &&
         ((u->lacv / 8) < tvb_length (tvb)) &&
-        (value[u->lacv / 8] & (1 << (8 - (u->lacv % 8)))))
+        (value[u->lacv / 8] & (1 << (7 - (u->lacv % 8)))))
     {
        proto_tree_add_string_format (tree, hf_ess_Category_attribute, tvb,
                                      u->lacv / 8, 1, u->name,
index d6f2db90eff60e96932616146dc75e6819b8b498..44404a7e4498911942dbaeab7789e7251c87bab8 100644 (file)
@@ -270,7 +270,7 @@ ess_dissect_attribute_flags (tvbuff_t *tvb, asn1_ctx_t *actx)
 
     if ((strcmp (u->oid, object_identifier_id) == 0) &&
         ((u->lacv / 8) < tvb_length (tvb)) &&
-        (value[u->lacv / 8] & (1 << (8 - (u->lacv % 8)))))
+        (value[u->lacv / 8] & (1 << (7 - (u->lacv % 8)))))
     {
        proto_tree_add_string_format (tree, hf_ess_Category_attribute, tvb,
                                      u->lacv / 8, 1, u->name,