* acquire_cred.c (krb5_gss_acquire_cred): Initialize variable
authorEzra Peisach <epeisach@mit.edu>
Thu, 25 Jul 1996 02:58:14 +0000 (02:58 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 25 Jul 1996 02:58:14 +0000 (02:58 +0000)
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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/acquire_cred.c

index 3e39c7f360cee63e83951232c3e5ab42b186de90..273469d768c924714babc6acbcefc94068cd0da7 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jul 24 22:54:37 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * ser_sctx.c (kg_oid_externalize): Add proper return code
index b2d6ce1116931a69925d871a174ef49128ecffc9..a1284087bfd644dc12920ac5b765b8b82b34dfdf 100644 (file)
@@ -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;