diff options
author | Tom Hughes <tom@compton.nu> | 2018-11-02 11:52:20 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2018-11-03 02:39:18 +0000 |
commit | 1b94fe7da31b20a06f9cdd3edb5f613d036ea639 (patch) | |
tree | 8645d6d209eb712268b11d4d6ebcd8363627a2c2 /epan/dissectors/packet-iax2.c | |
parent | 009a970cb2b6170d4f2c7bf0471adbeec00a9367 (diff) |
IAX: Don't try and convert an invalid codec to a mask
Bug: 15251
Change-Id: I1929e96766c32654f3b41c522df5cf22a1c60516
Reviewed-on: https://code.wireshark.org/review/30483
Reviewed-by: Johannes Altmanninger <aclopte@gmail.com>
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index 5f0cacc3d7..242d54d666 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -480,7 +480,7 @@ static const value_string iax_ies_type[] = { }; static value_string_ext iax_ies_type_ext = VALUE_STRING_EXT_INIT(iax_ies_type); -#define CODEC_MASK(codec) (G_GUINT64_CONSTANT(1) << (codec)) +#define CODEC_MASK(codec) ((codec) == (guint32)-1 ? 0 : (G_GUINT64_CONSTANT(1) << (codec))) static const val64_string codec_types[] = { {CODEC_MASK(AST_FORMAT_G723_1), "G.723.1 compression"}, |