diff options
author | araujo <araujo@FreeBSD.org> | 2015-06-02 09:03:15 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-06-02 09:03:15 +0000 |
commit | 0c25b23f88586b7126ca88c66e7f76b254521ee0 (patch) | |
tree | fc48f7e5234e395341be2977cc1c69c651449df9 /lib | |
parent | 3fa2da5f084a25755bd38c5435b522e8010d52a2 (diff) | |
download | FreeBSD-src-0c25b23f88586b7126ca88c66e7f76b254521ee0.zip FreeBSD-src-0c25b23f88586b7126ca88c66e7f76b254521ee0.tar.gz |
Remove unused variable allocated_ctx reported by clang.
Differential Revision: D2684
Reviewed by: rodrigc
Diffstat (limited to 'lib')
-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 b424092..930da7f 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) |