Remove unused variable allocated_ctx reported by clang.

Differential Revision:	D2684
Reviewed by:		rodrigc
This commit is contained in:
araujo 2015-06-02 09:03:15 +00:00
parent 3fa2da5f08
commit 0c25b23f88

View File

@ -165,7 +165,6 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status,
struct _gss_mechanism_cred *mc; struct _gss_mechanism_cred *mc;
gss_cred_id_t acceptor_mc, delegated_mc; gss_cred_id_t acceptor_mc, delegated_mc;
gss_name_t src_mn; gss_name_t src_mn;
int allocated_ctx;
*minor_status = 0; *minor_status = 0;
if (src_name) if (src_name)
@ -206,11 +205,8 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status,
free(ctx); free(ctx);
return (GSS_S_BAD_MECH); return (GSS_S_BAD_MECH);
} }
allocated_ctx = 1; } else
} else {
m = ctx->gc_mech; m = ctx->gc_mech;
allocated_ctx = 0;
}
if (cred) { if (cred) {
SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) SLIST_FOREACH(mc, &cred->gc_mc, gmc_link)