From: morriss Date: Wed, 18 May 2011 17:09:55 +0000 (+0000) Subject: Add a default (else) case in the default case for cause values to avoid passing X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=c196b1695053109afab58deed51a5181a1590a71 Add a default (else) case in the default case for cause values to avoid passing a NULL string pointer to format routines. While we're there, update the cause list from 48.008 v10.1.0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37244 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/epan/dissectors/packet-gsm_a_bssmap.c b/epan/dissectors/packet-gsm_a_bssmap.c index 81019a6679..07fcd5c9eb 100644 --- a/epan/dissectors/packet-gsm_a_bssmap.c +++ b/epan/dissectors/packet-gsm_a_bssmap.c @@ -5,7 +5,7 @@ * In association with Telos Technology Inc. * * Updated to 3GPP TS 48.008 version 8.4.0 Release 8 - * Copyrigt 2008, Anders Broman = 0x18) && (oct <= 0x1f)) { str = "Reserved for national use"; } + if ((oct >= 0x19) && (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"; } - else if ((oct >= 0x44) && (oct <= 0x47)) { str = "Reserved for international use"; } + else if ((oct >= 0x38) && (oct <= 0x3e)) { str = "Reserved for international use"; } else if ((oct >= 0x48) && (oct <= 0x4f)) { str = "Reserved for national use"; } else if ((oct >= 0x58) && (oct <= 0x5f)) { str = "Reserved for national use"; } else if ((oct >= 0x63) && (oct <= 0x67)) { str = "Reserved for international use"; } else if ((oct >= 0x68) && (oct <= 0x6f)) { str = "Reserved for national use"; } else if ((oct >= 0x70) && (oct <= 0x77)) { str = "Reserved for international use"; } else if ((oct >= 0x78) && (oct <= 0x7f)) { str = "Reserved for national use"; } + else { str = "Unknown"; } break; }