diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2015-06-02 09:03:15 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2015-06-02 09:03:15 +0000 |
commit | f21551360060e2a0f9b0ef95d98788f353b8902d (patch) | |
tree | fc48f7e5234e395341be2977cc1c69c651449df9 /lib/libgssapi | |
parent | f249b52d9a0bde9bc960bb122bb92798e573dc44 (diff) | |
download | src-f21551360060e2a0f9b0ef95d98788f353b8902d.tar.gz src-f21551360060e2a0f9b0ef95d98788f353b8902d.zip |
Remove unused variable allocated_ctx reported by clang.
Differential Revision: D2684
Reviewed by: rodrigc
Notes
Notes:
svn path=/head/; revision=283906
Diffstat (limited to 'lib/libgssapi')
-rw-r--r-- | lib/libgssapi/gss_accept_sec_context.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libgssapi/gss_accept_sec_context.c b/lib/libgssapi/gss_accept_sec_context.c index b4240920c59e..930da7f656fd 100644 --- a/lib/libgssapi/gss_accept_sec_context.c +++ b/lib/libgssapi/gss_accept_sec_context.c @@ -165,7 +165,6 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status, struct _gss_mechanism_cred *mc; gss_cred_id_t acceptor_mc, delegated_mc; gss_name_t src_mn; - int allocated_ctx; *minor_status = 0; if (src_name) @@ -206,11 +205,8 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status, free(ctx); return (GSS_S_BAD_MECH); } - allocated_ctx = 1; - } else { + } else m = ctx->gc_mech; - allocated_ctx = 0; - } if (cred) { SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) |