Commit 26401e4e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2124] don't keep a reference to a temporary object.

'rdf' in the original code immediately became dangling reference.
parent 31477bf8
......@@ -183,7 +183,7 @@ TEST_F(Rdata_SSHFP_Test, getFingerprintLen) {
}
TEST_F(Rdata_SSHFP_Test, emptyFingerprintFromWire) {
const generic::SSHFP& rdf =
const generic::SSHFP rdf =
dynamic_cast<const generic::SSHFP&>
(*rdataFactoryFromFile(RRType("SSHFP"), RRClass("IN"),
"rdata_sshfp_fromWire12"));
......
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