coar        99/07/28 10:58:24

  Modified:    src/main http_main.c
  Log:
        Note that *SecurityDescriptor() resets the last error if it
        succeeds.
  
  Revision  Changes    Path
  1.463     +5 -0      apache-1.3/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
  retrieving revision 1.462
  retrieving revision 1.463
  diff -u -r1.462 -r1.463
  --- http_main.c       1999/07/27 13:46:05     1.462
  +++ http_main.c       1999/07/28 17:58:21     1.463
  @@ -5886,6 +5886,11 @@
       if (pSD == NULL || sa == NULL) {
           return NULL;
       }
  +    /*
  +     * We can safely use GetLastError() here without presetting it;
  +     * InitializeSecurityDescriptor() has been verified as clearing it
  +     * on successful completion.
  +     */
       if (!InitializeSecurityDescriptor(pSD, SECURITY_DESCRIPTOR_REVISION)
        || GetLastError()) {
           LocalFree( pSD );
  
  
  

Reply via email to