mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
Remove unused variable allocated_ctx reported by clang.
Differential Revision: D2684 Reviewed by: rodrigc
This commit is contained in:
parent
f249b52d9a
commit
f215513600
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283906
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue