httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.org>
Subject cvs commit: apachen/src/modules/standard mod_setenvif.c
Date Mon, 18 Aug 1997 08:08:48 GMT
dgaudet     97/08/18 01:08:48

  Modified:    src/modules/standard mod_setenvif.c
  Log:
  Use pregcomp for proper pool cleanups.
  
  Revision  Changes    Path
  1.6       +2 -2      apachen/src/modules/standard/mod_setenvif.c
  
  Index: mod_setenvif.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/modules/standard/mod_setenvif.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- mod_setenvif.c	1997/08/18 07:17:30	1.5
  +++ mod_setenvif.c	1997/08/18 08:08:47	1.6
  @@ -211,8 +211,8 @@
   	new = push_array(sconf->conditionals);
   	new->name = fname;
   	new->regex = regex;
  -	new->preg = pcalloc(cmd->pool, sizeof(regex_t));
  -	if (regcomp(new->preg, regex, REG_EXTENDED|REG_NOSUB|cflags)) {
  +	new->preg = pregcomp (cmd->pool, regex, REG_EXTENDED|REG_NOSUB|cflags);
  +	if (new->preg == NULL) {
   	    error = pstrcat(cmd->pool, cmd->cmd->name,
   			    " regex could not be compiled.", NULL);
   	    return error;
  
  
  

Mime
View raw message