packet-knxnetip.c: Fix bitmask

Bug: 14115
Change-Id: I836ee337f4727b0592cda074975c20a68fe7a27d
Reviewed-on: https://code.wireshark.org/review/24124
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michael Mann 2017-10-27 20:36:09 -04:00
parent c6c709490c
commit 89e40fad29
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ static void dissect_apci(tvbuff_t *tvb, guint32 *offset, proto_tree *insert_tree
switch (type){
case(A_ADC_RED):
case(A_ADC_RES):
type = (tvb_get_ntohs(tvb, *offset) & 0x2FF);
type = (tvb_get_ntohs(tvb, *offset) & 0x1FF);
if (type == A_SYS_RED || type == A_SYS_RES || type == A_SYS_WRT || type == A_SYS_BROAD){
proto_tree_add_bits_item(insert_tree, hf_knxnetip_cemi_apci, tvb, (*offset*8)+6, 10, ENC_BIG_ENDIAN);
}