httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@ai.mit.edu (Robert S. Thau)
Subject DBM auth fix (?)
Date Tue, 08 Aug 1995 12:48:04 GMT
Could someone who uses DBM auth try this out, and make sure that it
doesn't break anything?

*** mod_auth_dbm.c~	Mon Jul 31 20:46:11 1995
--- mod_auth_dbm.c	Tue Aug  8 12:46:05 1995
***************
*** 182,193 ****
      char errstr[MAX_STRING_LEN];
      
      array_header *reqs_arr = requires (r);
!     require_line *reqs = (require_line *)reqs_arr->elts;
  
      register int x;
      char *t, *w;
  
      if (!sec->auth_dbmgrpfile) return DECLINED;
      
      for(x=0; x < reqs_arr->nelts; x++) {
        
--- 182,194 ----
      char errstr[MAX_STRING_LEN];
      
      array_header *reqs_arr = requires (r);
!     require_line *reqs = reqs_arr ? (require_line *)reqs_arr->elts : NULL;
  
      register int x;
      char *t, *w;
  
      if (!sec->auth_dbmgrpfile) return DECLINED;
+     if (!reqs_arr) return DECLINED;
      
      for(x=0; x < reqs_arr->nelts; x++) {
        

Mime
View raw message