Remove some dead (statement not reached) code (while trying to avoid any false contro...
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 11 Jul 2008 18:56:03 +0000 (18:56 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 11 Jul 2008 18:56:03 +0000 (18:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25706 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-bittorrent.c

index ec73e179e4c080752173e692242022251e98d35f..95c574148c3110cac75ba06905dc5e9ce17a3e53 100644 (file)
@@ -488,12 +488,8 @@ static int dissect_bencoding_rec(tvbuff_t *tvb, packet_info *pinfo _U_,
     if (tree) {
       proto_tree_add_text(tree, tvb, offset, -1, "Decode Aborted: Invalid Bencoding");
     }
-    return -1;
   }
 
-  if (tree) {
-    proto_tree_add_text(tree, tvb, offset, -1, "Decode Aborted: Internal Error");
-  }
   return -1;
 }