Followup to #11143.
Not a bug per se, but the unreachable code should be guarded by proper #ifdef
TKEYRecordContent tkey_in;
std::shared_ptr<TKEYRecordContent> tkey_out(new TKEYRecordContent());
DNSName name;
+#ifdef ENABLE_GSS_TSIG
bool sign = false;
+#endif
if (!p.getTKEYRecord(&tkey_in, &name)) {
g_log<<Logger::Error<<"TKEY request but no TKEY RR found"<<endl;
zrr.dr.d_place = DNSResourceRecord::ANSWER;
r->addRecord(std::move(zrr));
+#ifdef ENABLE_GSS_TSIG
if (sign)
{
TSIGRecordContent trc;
// this should cause it to lookup name context
r->setTSIGDetails(trc, name, name.toStringNoDot(), "", false);
}
+#endif
r->commitD();
}