]> granicus.if.org Git - pdns/commitdiff
Initialize members for GssContext
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 17:55:20 +0000 (20:55 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 21:52:45 +0000 (00:52 +0300)
fix cid#1302371

pdns/gss_context.cc

index f5cad59a5a70dfa6a5305bb192669ad300dec30f..1f88996c01e541432fc6fa815d562fcee46fcce3 100644 (file)
@@ -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) {}