wireshark: throw exception if wrong encoding

This commit is contained in:
Bastian Bloessl
2013-06-21 19:46:23 +02:00
parent 888b9a6874
commit a56e65851c
+3
View File
@@ -141,6 +141,9 @@ wireshark_connector_impl::encoding_to_rate(uint64_t encoding) {
case 7:
return 54 * 2;
}
throw std::invalid_argument("wrong encoding");
return 0;
}
int