From: Ezra Peisach Date: Thu, 25 Jul 1996 02:58:14 +0000 (+0000) Subject: * acquire_cred.c (krb5_gss_acquire_cred): Initialize variable X-Git-Tag: krb5-1.0-beta7~270 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d8b4e664a6ddec2f7b11ed7f1919c2ff566c2f5;p=krb5.git * acquire_cred.c (krb5_gss_acquire_cred): Initialize variable before use if GSS_C_NULL_OID_SET. This was causing random failures in gssftp. I was unlucky enough to hit that random case where one of the random stack values was zero. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8812 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 3e39c7f36..273469d76 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 24 22:54:37 1996 Ezra Peisach + + * acquire_cred.c (krb5_gss_acquire_cred): Initialize variable + before use if GSS_C_NULL_OID_SET. + Wed Jul 24 19:40:55 1996 Theodore Y. Ts'o * ser_sctx.c (kg_oid_externalize): Add proper return code diff --git a/src/lib/gssapi/krb5/acquire_cred.c b/src/lib/gssapi/krb5/acquire_cred.c index b2d6ce111..a1284087b 100644 --- a/src/lib/gssapi/krb5/acquire_cred.c +++ b/src/lib/gssapi/krb5/acquire_cred.c @@ -297,6 +297,8 @@ krb5_gss_acquire_cred(minor_status, desired_name, time_req, if (desired_mechs == GSS_C_NULL_OID_SET) { valid_mechs = gss_mech_set_krb5_both; + req_old = 1; + req_new = 1; } else { req_old = 0; req_new = 0;