GTPv2: fix Logically dead code (CID 1255924)
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sat, 3 Jan 2015 19:44:06 +0000 (20:44 +0100)
committerAnders Broman <a.broman58@gmail.com>
Sun, 4 Jan 2015 12:06:38 +0000 (12:06 +0000)
Change-Id: Ia21d8f68b5d898b4493da8cf948ad421f94234fc
Reviewed-on: https://code.wireshark.org/review/6278
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-gtpv2.c

index 8c8b7b68cd05e4f21c9833ffff3d199c6554fee8..f2ce0dfd3e7729faf1f3a64f5fe7a3217fb6858d 100644 (file)
@@ -1777,7 +1777,7 @@ dissect_gtpv2_ind(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_ite
     proto_tree_add_item(tree, hf_gtpv2_aopi,            tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
 
-    if (length == 4) {
+    if (length == 5) {
         return;
     }