Commit 25af754f authored by Marcin Siodelski's avatar Marcin Siodelski

[1956] Catch exceptions as const reference.

parent 968d486c
......@@ -75,7 +75,7 @@ PerfPkt6::rawPack() {
// but still some options have to be updated if client
// specified them along with their offsets in the buffer.
rawPackOptions();
} catch (isc::BadValue& e) {
} catch (const isc::BadValue& e) {
cout << "Building packet failed: " << e.what() << endl;
return (false);
}
......@@ -102,7 +102,7 @@ PerfPkt6::rawUnpack() {
msg_type_ = data_[0];
try {
rawUnpackOptions();
} catch (isc::BadValue& e) {
} catch (const isc::BadValue& e) {
cout << "Packet parsing failed: " << e.what() << endl;
return (false);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment