Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2015 09:03:15 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283906 - head/lib/libgssapi
Message-ID:  <201506020903.t5293Fa3081583@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo (ports committer)
Date: Tue Jun  2 09:03:15 2015
New Revision: 283906
URL: https://svnweb.freebsd.org/changeset/base/283906

Log:
  Remove unused variable allocated_ctx reported by clang.
  
  Differential Revision:	D2684
  Reviewed by:		rodrigc

Modified:
  head/lib/libgssapi/gss_accept_sec_context.c

Modified: head/lib/libgssapi/gss_accept_sec_context.c
==============================================================================
--- head/lib/libgssapi/gss_accept_sec_context.c	Tue Jun  2 08:03:28 2015	(r283905)
+++ head/lib/libgssapi/gss_accept_sec_context.c	Tue Jun  2 09:03:15 2015	(r283906)
@@ -165,7 +165,6 @@ OM_uint32 gss_accept_sec_context(OM_uint
 	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_uint
 			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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506020903.t5293Fa3081583>