]> granicus.if.org Git - apache/commitdiff
Fix several cut 'n paste errors identified by Juergen Heckel.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 11 Nov 2002 05:58:39 +0000 (05:58 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 11 Nov 2002 05:58:39 +0000 (05:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97481 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_isapi.c

index 83032ab3387343f03a3caa6e574f9c9d8f46c35d..9349663db5495e2f9ccc34b57ac0c1f14a66b43e 100644 (file)
@@ -892,9 +892,7 @@ int APR_THREAD_FUNC ServerSupportFunction(isapi_cid    *cid,
          * leave it to the pool cleanup to dispose of our mutex.
          */
         if (cid->completed) {
-            rv = apr_thread_mutex_create(&cid->completed, 
-                                         APR_THREAD_MUTEX_UNNESTED, 
-                                         r->pool);
+            (void)apr_thread_mutex_unlock(cid->completed);
             return 1;
         }
         else if (cid->dconf.log_unsupported) {
@@ -1498,7 +1496,7 @@ apr_status_t isapi_handler (request_rec *r)
                                      APR_THREAD_MUTEX_UNNESTED, 
                                      r->pool);
         if (cid->completed && (rv == APR_SUCCESS)) {
-            rv = apr_thread_mutex_lock(comp);
+            rv = apr_thread_mutex_lock(cid->completed);
         }
 
         if (!cid->completed || (rv != APR_SUCCESS)) {