/*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* SUCH DAMAGE.
*/
+/*
+ * Release a context handle.
+ */
+
#include "gssapiP_eap.h"
OM_uint32
major = gssEapWrapOrGetMIC(minor, ctx, FALSE, FALSE,
iov, 2, TOK_TYPE_DELETE_CONTEXT);
- if (GSS_ERROR(major))
+ if (GSS_ERROR(major)) {
+ GSSEAP_MUTEX_UNLOCK(&ctx->mutex);
return major;
+ }
}
GSSEAP_MUTEX_UNLOCK(&ctx->mutex);