From: Jeff Trawick Date: Thu, 12 Feb 2009 21:40:20 +0000 (+0000) Subject: Fix a crash with r742218 by calling apr_os_thread_put() properly. X-Git-Tag: 2.3.2~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65aa43059742e6a0c7901f78cd645e6cba85d077;p=thirdparty%2Fapache%2Fhttpd.git Fix a crash with r742218 by calling apr_os_thread_put() properly. (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 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 8eb584e115f..d7157371d8b 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -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;