aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iax2.c
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2018-11-02 17:50:17 +0100
committerMichael Mann <mmann78@netscape.net>2018-11-03 02:38:31 +0000
commit009a970cb2b6170d4f2c7bf0471adbeec00a9367 (patch)
treed9ce2b6041bffddfdba80bb8fdf2691d44eaa5fb /epan/dissectors/packet-iax2.c
parent8537f3cb92f0f0090b6d2ec30d429f7e1b3f0997 (diff)
IAX: Fix the bitmask extracting the subclass field
See https://github.com/asterisk/asterisk/blob/master/channels/chan_iax2.c#L10154 Change-Id: I2b4dc8a5af783bae9c5afed03deb6cd0b85cacc2 Reviewed-on: https://code.wireshark.org/review/30486 Reviewed-by: Tom Hughes <tom@compton.nu> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r--epan/dissectors/packet-iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c
index 370fd1b890..5f0cacc3d7 100644
--- a/epan/dissectors/packet-iax2.c
+++ b/epan/dissectors/packet-iax2.c
@@ -1894,7 +1894,7 @@ dissect_fullpacket(tvbuff_t *tvb, guint32 offset,
case AST_FRAME_VIDEO:
/* bit 6 of the csub is used to represent the rtp 'marker' bit */
rtp_marker = csub & 0x40 ? TRUE:FALSE;
- iax_packet -> codec = codec = uncompress_subclass((guint8)(csub & ~40));
+ iax_packet -> codec = codec = uncompress_subclass((guint8)(csub & ~0x40));
if (packet_type_tree) {
proto_item *item;