svn commit: r283906 - head/lib/libgssapi

Marcelo Araujo araujo at FreeBSD.org
Tue Jun 2 09:03:16 UTC 2015


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)


More information about the svn-src-head mailing list