]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
cppcheck warning removed (exception in pkt6.cc caught by reference)
authorTomek Mrugalski <tomasz@isc.org>
Mon, 17 Oct 2011 13:17:47 +0000 (15:17 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 17 Oct 2011 13:17:47 +0000 (15:17 +0200)
src/lib/dhcp/pkt6.cc

index 65bd95ec67bd26a6451250fb420ba5ae72bc3f0d..1e4a5535a002b3344426d408331036f5ff041f88 100644 (file)
@@ -120,7 +120,7 @@ Pkt6::packUDP() {
                       << length << ", actual len=" << offset);
         }
     }
-    catch (Exception e) {
+    catch (const Exception& e) {
         cout << "Packet build failed:" << e.what() << endl;
         return (false);
     }