httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental util_ldap.c
Date Sat, 26 Jun 2004 16:00:26 GMT
bnicholes    2004/06/26 09:00:26

  Modified:    modules/experimental util_ldap.c
  Log:
  Check for a NULL file name before trying to delete the file
  
  Revision  Changes    Path
  1.35      +1 -1      httpd-2.0/modules/experimental/util_ldap.c
  
  Index: util_ldap.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/util_ldap.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- util_ldap.c	25 Jun 2004 19:56:35 -0000	1.34
  +++ util_ldap.c	26 Jun 2004 16:00:26 -0000	1.35
  @@ -1188,9 +1188,9 @@
   #if APR_HAS_SHARED_MEMORY
           /* If the cache file already exists then delete it.  Otherwise we are
            * going to run into problems creating the shared memory. */
  -        apr_file_remove(st->cache_file, ptemp);
           if (st->cache_file) {
               char *lck_file = apr_pstrcat (st->pool, st->cache_file, ".lck", NULL);
  +            apr_file_remove(st->cache_file, ptemp);
               apr_file_remove(lck_file, ptemp);
           }
   #endif
  
  
  

Mime
View raw message