svn rev #21574: branches/mskrb-integ/src/lib/gssapi/krb5/

lhoward@MIT.EDU lhoward at MIT.EDU
Tue Dec 23 00:27:15 EST 2008


http://src.mit.edu/fisheye/changelog/krb5/?cs=21574
Commit By: lhoward
Log Message:
cleanup


Changed Files:
U   branches/mskrb-integ/src/lib/gssapi/krb5/inq_context.c
Modified: branches/mskrb-integ/src/lib/gssapi/krb5/inq_context.c
===================================================================
--- branches/mskrb-integ/src/lib/gssapi/krb5/inq_context.c	2008-12-23 05:25:25 UTC (rev 21573)
+++ branches/mskrb-integ/src/lib/gssapi/krb5/inq_context.c	2008-12-23 05:27:14 UTC (rev 21574)
@@ -239,14 +239,13 @@
     unsigned char oid_buf[GSS_KRB5_SESSION_KEY_ENCTYPE_OID_LENGTH + 6];
     unsigned char *op;
     size_t nbytes;
-    int oenctype, enctype, i;
+    int enctype, i;
 
     ctx = (krb5_gss_ctx_id_rec *) context_handle;
     key = ctx->have_acceptor_subkey ? ctx->acceptor_subkey : ctx->subkey;
 
     keyvalue.value = key->contents;
     keyvalue.length = key->length;
-    enctype = key->enctype;
 
     major_status = generic_gss_add_buffer_set_member(minor_status, &keyvalue, data_set);
     if (GSS_ERROR(major_status)) {
@@ -259,12 +258,12 @@
 	   GSS_KRB5_SESSION_KEY_ENCTYPE_OID_LENGTH);
 
     nbytes = 0;
-    oenctype = enctype;
+    enctype = key->enctype;
     while (enctype) {
 	nbytes++;
 	enctype >>= 7;
     }
-    enctype = oenctype;
+    enctype = key->enctype;
     op = oid_buf + GSS_KRB5_SESSION_KEY_ENCTYPE_OID_LENGTH + nbytes;
     i = -1;
     while (enctype) {




More information about the cvs-krb5 mailing list