diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-dect.c | 2 | ||||
-rw-r--r-- | epan/dissectors/packet-gsm_a_bssmap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dect.c b/epan/dissectors/packet-dect.c index a38cd41038..c8743bfd94 100644 --- a/epan/dissectors/packet-dect.c +++ b/epan/dissectors/packet-dect.c @@ -1642,7 +1642,7 @@ dissect_decttype(gboolean dect_packet_type, struct dect_afield *pkt_afield, proto_tree_add_item(ATail, hf_dect_A_Tail_Mt_BasicConCtrl, tvb, offset, 1, FALSE); offset++; - if(((tail_0 && 0x0f)==6)||((tail_0 && 0x0f)==7)) + if(((tail_0 & 0x0f)==6)||((tail_0 & 0x0f)==7)) { proto_tree_add_uint_format(ATail, hf_dect_A_Tail_Mt_Mh, tvb, offset, 4, 0x2323, "here should be attributes..."); offset +=4; diff --git a/epan/dissectors/packet-gsm_a_bssmap.c b/epan/dissectors/packet-gsm_a_bssmap.c index 336fd08c02..dbf37a7e9b 100644 --- a/epan/dissectors/packet-gsm_a_bssmap.c +++ b/epan/dissectors/packet-gsm_a_bssmap.c @@ -771,7 +771,7 @@ be_cause(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_ case 0x62: str = "DTM Handover - Timer Expiry"; break; default: - if ((oct >= 0x18) && (oct <= 0x17)) { str = "Reserved for international use"; } + if ((oct >= 0) && (oct <= 0x17)) { str = "Reserved for international use"; } else if ((oct >= 0x18) && (oct <= 0x1f)) { str = "Reserved for national use"; } else if ((oct >= 0x2c) && (oct <= 0x2f)) { str = "Reserved for national use"; } else if ((oct >= 0x35) && (oct <= 0x3f)) { str = "Reserved for international use"; } |