Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 80867 invoked from network); 9 Mar 2005 18:13:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Mar 2005 18:13:32 -0000 Received: (qmail 34649 invoked by uid 500); 9 Mar 2005 18:13:29 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 34595 invoked by uid 500); 9 Mar 2005 18:13:28 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 34582 invoked by uid 99); 9 Mar 2005 18:13:28 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from sinclair.provo.novell.com (HELO sinclair.provo.novell.com) (137.65.81.169) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Mar 2005 10:13:27 -0800 Received: from INET-PRV-MTA by sinclair.provo.novell.com with Novell_GroupWise; Wed, 09 Mar 2005 11:13:25 -0700 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Beta Date: Wed, 09 Mar 2005 11:13:19 -0700 From: "Brad Nicholes" To: , Subject: Re: Proposed LDAP Fix Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 500/1000/N The patch has been committed to httpd-trunk. thanks, Brad >>> jfenlason@ptc.com Tuesday, March 08, 2005 7:26:02 AM >>> I had problems with LDAP modules in 2.0.53 on Windows. It authenticates fine, but when I shut down apache I get those Microsoft alerts saying something went wrong. It only happens when I have the ldap modules enabled. The problem is in modules/experimental/util_ldap_cache.c in the util_ldap_cache_module_kill() method. The cache_file is null. Adding a null check prior to calling apr_file_remove() fixed the issue. Any thoughts? Thanks. , Josh. apr_status_t util_ldap_cache_module_kill(void *data) { util_ldap_state_t *st = (util_ldap_state_t *)data; util_ald_destroy_cache(st->util_ldap_cache); #if APR_HAS_SHARED_MEMORY if (st->cache_rmm != NULL) { apr_rmm_destroy (st->cache_rmm); st->cache_rmm = NULL; } if (st->cache_shm != NULL) { apr_status_t result = apr_shm_destroy(st->cache_shm); st->cache_shm = NULL; if ( st->cache_file != NULL ) // ADDED THIS LINE apr_file_remove(st->cache_file, st->pool); return result; } #endif return APR_SUCCESS; }