#223 Properly initialize ccaches before storing into them
Merged 6 years ago by rharwood. Opened 6 years ago by rharwood.
rharwood/gssproxy cc_flash_fixup  into  master

@@ -247,6 +247,13 @@ 

  

          ret = krb5_cc_new_unique(ctx, cc_type, NULL, &ccache);

          free(cc_type);

+         if (ret)

+             goto done;

+ 

+         /* krb5_cc_new_unique() doesn't initialize, and we need to initialize

+          * before storing into the ccache.  Note that this will only clobber

+          * the ccache handle, not the whole collection. */

+         ret = krb5_cc_initialize(ctx, ccache, cred.client);

      }

      if (ret)

          goto done;

rebased onto 80b9ebb

6 years ago

Commit be7df45 fixes this pull-request

Pull-Request has been merged by rharwood

6 years ago