Skip to content
Snippets Groups Projects
Select Git revision
  • b0ab77ee7f38e8db5058d718729f96f66aeb01ab
  • master default protected
  • rednatco-v2
  • base-pairs-ladder
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

ascii.ts

Blame
  • zs5-multhr-hostcache 1.18 KiB
    Index: nfs-utils-1.3.4/utils/gssd/gssd_proc.c
    ===================================================================
    --- nfs-utils-1.3.4.orig/utils/gssd/gssd_proc.c
    +++ nfs-utils-1.3.4/utils/gssd/gssd_proc.c
    @@ -84,6 +84,7 @@
     int num_krb5_enctypes = 0;
     krb5_enctype *krb5_enctypes = NULL;
     
    +static pthread_rwlock_t machine_credential_rwlock = PTHREAD_RWLOCK_INITIALIZER;
     /*
      * Parse the supported encryption type information
      */
    @@ -533,6 +534,7 @@ krb5_use_machine_creds(struct clnt_info
     		uid, tgtname);
     
     	do {
    +		pthread_rwlock_wrlock(&machine_credential_rwlock);
     		gssd_refresh_krb5_machine_credential(clp->servername, NULL,
     						service);
     	/*
    @@ -545,6 +547,8 @@ krb5_use_machine_creds(struct clnt_info
     				clp->servername);
     			goto out;
     		}
    +		pthread_rwlock_unlock(&machine_credential_rwlock);
    +		pthread_rwlock_rdlock(&machine_credential_rwlock);
     		for (ccname = credlist; ccname && *ccname; ccname++) {
     			u_int min_stat;
     
    @@ -583,9 +587,12 @@ krb5_use_machine_creds(struct clnt_info
     				goto out;
     			}
     		}
    +		pthread_rwlock_unlock(&machine_credential_rwlock);
     	} while(!success);
    +	return auth;
     
     out:
    +	pthread_rwlock_unlock(&machine_credential_rwlock);
     	return auth;
     }