Commit 0b98878e authored by Jelte Jansen's avatar Jelte Jansen

[master] catch by reference (caught by cppcheck)

parent 747d2952
......@@ -153,7 +153,7 @@ TSIG::TSIG(const std::string& tsig_str) : impl_(NULL) {
impl_ = new TSIGImpl(algorithm, time_signed, fudge, mac, orig_id,
error, other_data);
} catch (StringTokenError ste) {
} catch (const StringTokenError& ste) {
isc_throw(InvalidRdataText, "Invalid TSIG text: " << ste.what() <<
": " << tsig_str);
}
......
......@@ -84,7 +84,7 @@ SRV::SRV(const string& srv_str) :
}
impl_ = new SRVImpl(priority, weight, port, targetname);
} catch (StringTokenError ste) {
} catch (const StringTokenError& ste) {
isc_throw(InvalidRdataText, "Invalid SRV text: " <<
ste.what() << ": " << srv_str);
}
......
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