+2001-06-21 Ezra Peisach <epeisach@mit.edu>
+
+ * accept_sec_context.c (krb5_gss_accept_sec_context): Do not
+ shadow local variable ptr.
+
2001-06-22 Danilo Almeida <dalmeida@mit.edu>
* util_crypt.c (kg_encrypt, kg_decrypt): Use free() instead of
/* generate an AP_REP if necessary */
if (ctx->gss_flags & GSS_C_MUTUAL_FLAG) {
- unsigned char * ptr;
+ unsigned char * ptr3;
if ((code = krb5_mk_rep(context, auth_context, &ap_rep))) {
major_status = GSS_S_FAILURE;
goto fail;
code = ENOMEM;
goto fail;
}
- ptr = token.value;
+ ptr3 = token.value;
g_make_token_header((gss_OID) mech_used, ap_rep.length,
- &ptr, KG_TOK_CTX_AP_REP);
+ &ptr3, KG_TOK_CTX_AP_REP);
- TWRITE_STR(ptr, ap_rep.data, ap_rep.length);
+ TWRITE_STR(ptr3, ap_rep.data, ap_rep.length);
ctx->established = 1;