Corrected switch-case flow.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Apr 2011 09:05:43 +0000 (09:05 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Apr 2011 09:05:43 +0000 (09:05 +0000)
Coverity 1184.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36579 f5534014-38df-0310-8fa8-9805f1628bb7

asn1/snmp/packet-snmp-template.c
epan/dissectors/packet-snmp.c

index 90e7d59ff404fc50bed29dc041a5850bb1cb01da..bd1a9fd0fb35b197babba7d795f5aed7471b13de 100644 (file)
@@ -692,11 +692,11 @@ show_oid_index:
                                                                        case OID_KEY_TYPE_IPADDR: {
                                                                                guint32* ipv4_p = (void*)buf;
                                                                                proto_tree_add_ipv4(pt_name,k->hfid,tvb,name_offset,buf_len, *ipv4_p);
+                                                                               }
                                                                                break;
                                                                        default:
                                                                                DISSECTOR_ASSERT_NOT_REACHED();
                                                                                break;
-                                                                       }
                                                                }
 
                                                                key_start += buf_len;
index 6a7ecafc2655fbbd653963bac03ecbf0c8be1731..91e2d7924727b350760916c700c1c9f03201ae42 100644 (file)
@@ -794,11 +794,11 @@ show_oid_index:
                                                                        case OID_KEY_TYPE_IPADDR: {
                                                                                guint32* ipv4_p = (void*)buf;
                                                                                proto_tree_add_ipv4(pt_name,k->hfid,tvb,name_offset,buf_len, *ipv4_p);
+                                                                               }
                                                                                break;
                                                                        default:
                                                                                DISSECTOR_ASSERT_NOT_REACHED();
                                                                                break;
-                                                                       }
                                                                }
 
                                                                key_start += buf_len;