buffer->value = NULL;
return GSS_S_COMPLETE;
- };
+ }
try {
name->attrCtx->exportToBuffer(buffer);
+ if (buffer->length == 0)
+ return GSS_S_FAILURE;
} catch (std::exception &e) {
return mapException(minor, e);
}
if (buffer->length != 0) {
try {
- ctx = new gss_eap_attr_ctx;
+ ctx = new gss_eap_attr_ctx();
if (!ctx->initFromBuffer(NULL, buffer)) {
delete ctx;
try {
if (in->attrCtx != NULL) {
+ ctx = new gss_eap_attr_ctx();
if (!ctx->initFromExistingContext(NULL, in->attrCtx)) {
delete ctx;
return GSS_S_FAILURE;
{
gss_eap_attr_ctx *ctx;
- ctx = new gss_eap_attr_ctx;
+ ctx = new gss_eap_attr_ctx();
if (!ctx->initFromGssContext(NULL, gssCred, gssCtx)) {
delete ctx;
return NULL;