krb5: Init mutex of anon MEMORY ccaches
authorNicolas Williams <nico@twosigma.com>
Wed, 4 Mar 2020 20:11:42 +0000 (14:11 -0600)
committerNicolas Williams <nico@twosigma.com>
Wed, 4 Mar 2020 20:11:52 +0000 (14:11 -0600)
lib/krb5/mcache.c

index 1ce1df343f41c480170830c03c5510b4a36645b0..c3bbe4cedd7d2cb3a619f76ad7fca7a9d8b4587a 100644 (file)
@@ -101,6 +101,7 @@ again:
        return krb5_enomem(context);
     }
     if (strcmp(m->name, "anonymous") == 0) {
+        HEIMDAL_MUTEX_init(&(m->mutex));
         m->anonymous = 1;
         m->dead = 0;
         m->refcnt = 1;