From: Aki Tuomi Date: Tue, 29 Sep 2015 17:55:20 +0000 (+0300) Subject: Initialize members for GssContext X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~12^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ed1fa3643824916bef889e9729813242213e93;p=thirdparty%2Fpdns.git Initialize members for GssContext fix cid#1302371 --- diff --git a/pdns/gss_context.cc b/pdns/gss_context.cc index f5cad59a5a..1f88996c01 100644 --- a/pdns/gss_context.cc +++ b/pdns/gss_context.cc @@ -19,8 +19,8 @@ #ifndef ENABLE_GSS_TSIG bool GssContext::supported() { return false; } -GssContext::GssContext() {}; -GssContext::GssContext(const std::string& label) {}; +GssContext::GssContext() { d_error = GSS_CONTEXT_UNSUPPORTED; d_type = GSS_CONTEXT_NONE; } +GssContext::GssContext(const std::string& label) { d_error = GSS_CONTEXT_UNSUPPORTED; d_type = GSS_CONTEXT_NONE; } void GssContext::setLocalPrincipal(const std::string& name) {} bool GssContext::getLocalPrincipal(std::string& name) { return false; } void GssContext::setPeerPrincipal(const std::string& name) {}