- values->set("context_handle", this->contextKey.c_str());
- values->set("actual_mech_type", this->getActualMechType().toString().c_str());
- values->set("output_token", output_str.c_str());
- values->set("ret_flags", this->ret_flags);
- values->set("time_rec", this->time_rec);
- // MRW -- modify for new error handling
+
+ if ( !GSS_ERROR(this->retVal) )
+ {
+ values->set("context_handle", this->contextKey.c_str());
+ values->set("actual_mech_type", this->getActualMechType().toString().c_str());
+ values->set("output_token", output_str.c_str());
+ values->set("ret_flags", this->ret_flags);
+ values->set("time_rec", this->time_rec);
+ }