* threads.c (krb5int_thread_support_init): Do finish initialization after key creatio...
authorKen Raeburn <raeburn@mit.edu>
Sat, 31 Jul 2004 08:34:16 +0000 (08:34 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 31 Jul 2004 08:34:16 +0000 (08:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16635 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/ChangeLog
src/util/support/threads.c

index aff1b7aa9e13fd141468f0ce8eee099a1262c7e3..d460e54432e7a36f2f913e52836c9691e86b61f2 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-31  Ken Raeburn  <raeburn@mit.edu>
+
+       * threads.c (krb5int_thread_support_init): Do finish
+       initialization after key creation in POSIX case.
+
 2004-07-23  Ken Raeburn  <raeburn@mit.edu>
 
        * fake-addrinfo.c (krb5int_fac): Initialize the mutex.
index 1e2430b9a50323a755c55c3d9c14a3550fd48bef..dd9819487785ce22b4f531439cfc6b37cd00c394 100644 (file)
@@ -344,8 +344,11 @@ int krb5int_thread_support_init (void)
     err = k5_mutex_finish_init(&key_lock);
     if (err)
        return err;
-    if (K5_PTHREADS_LOADED)
-       return pthread_key_create(&key, thread_termination);
+    if (K5_PTHREADS_LOADED) {
+       err = pthread_key_create(&key, thread_termination);
+       if (err)
+           return err;
+    }
 
 #endif