ansi tcap: Fix faulty mask for AMSI MAP "family" in Operation code
authorAnders Broman <anders.broman@ericsson.com>
Mon, 5 Nov 2018 13:07:31 +0000 (14:07 +0100)
committerAnders Broman <a.broman58@gmail.com>
Mon, 5 Nov 2018 13:51:03 +0000 (13:51 +0000)
Bug: 15236
Change-Id: Iab14c15f8ad7ed3ee669d9aa759c587aca2777df
Reviewed-on: https://code.wireshark.org/review/30513
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/asn1/ansi_tcap/packet-ansi_tcap-template.c
epan/dissectors/packet-ansi_tcap.c

index 47242f236c5f30f61a6fefb13d9c545c006a4783..9a8dd442b440eacbcd989684ec3edaca9139e130 100644 (file)
@@ -278,7 +278,7 @@ find_tcap_subdissector(tvbuff_t *tvb, asn1_ctx_t *actx, proto_tree *tree){
                 return TRUE;
         }else if(ansi_tcap_private.d.OperationCode == 1){
                 /* private */
-                if((ansi_tcap_private.d.OperationCode_private & 0x0900) == 0x0900){
+                if((ansi_tcap_private.d.OperationCode_private & 0xff00) == 0x0900){
                     /* This is abit of a hack as it assumes the private codes with a "family" of 0x09 is ANSI MAP
                     * See TODO above.
                     * N.S0005-0 v 1.0 TCAP Formats and Procedures 5-16 Application Services
index bcf448cbb54f8c900aac6c37a8f589fb19a57e7b..602989aa2a6ff70e6dc3a29f32704565b6213ff8 100644 (file)
@@ -369,7 +369,7 @@ find_tcap_subdissector(tvbuff_t *tvb, asn1_ctx_t *actx, proto_tree *tree){
                 return TRUE;
         }else if(ansi_tcap_private.d.OperationCode == 1){
                 /* private */
-                if((ansi_tcap_private.d.OperationCode_private & 0x0900) == 0x0900){
+                if((ansi_tcap_private.d.OperationCode_private & 0xff00) == 0x0900){
                     /* This is abit of a hack as it assumes the private codes with a "family" of 0x09 is ANSI MAP
                     * See TODO above.
                     * N.S0005-0 v 1.0 TCAP Formats and Procedures 5-16 Application Services