]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1956] Catch exceptions as const reference.
authorMarcin Siodelski <marcin@isc.org>
Thu, 31 May 2012 18:14:47 +0000 (20:14 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 31 May 2012 18:14:47 +0000 (20:14 +0200)
tests/tools/perfdhcp/perf_pkt6.cc

index de3983c2a1e841c8d3af2d7a953c8fd1d1c1de94..0c6b8dcfca477028d4817d01902ebf6991eec173 100644 (file)
@@ -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);
     }