]> granicus.if.org Git - apache/commitdiff
Fix a crash with r742218 by calling apr_os_thread_put() properly.
authorJeff Trawick <trawick@apache.org>
Thu, 12 Feb 2009 21:40:20 +0000 (21:40 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 12 Feb 2009 21:40:20 +0000 (21:40 +0000)
(The first parameter to apr_os_thread_put() must be initialized, either to
NULL or to an existing apr_thread_t.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@743894 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 8eb584e115f1f910e8a09fc5fad4edfaf2cdd6c5..d7157371d8b5fdc3f7fb1bb76b6105c5f286afbc 100644 (file)
@@ -432,7 +432,7 @@ static int num_listensocks = 0;
 static void child_main(int child_num_arg)
 {
 #if APR_HAS_THREADS
-    apr_thread_t *thd;
+    apr_thread_t *thd = NULL;
     apr_os_thread_t osthd;
 #endif
     apr_pool_t *ptrans;