You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by aa...@apache.org on 2002/01/03 16:45:02 UTC

cvs commit: httpd-test/flood flood_round_robin.c

aaron       02/01/03 07:45:02

  Modified:    flood    flood_round_robin.c
  Log:
  Fix unterminated-string bug that would give us corrupted cookie data when
  multiple cookies were used.
  
  Submitted by:	Chris Williams <ch...@cmguc.com>
  Reviewed by:	Aaron Bannert
  
  Revision  Changes    Path
  1.20      +1 -1      httpd-test/flood/flood_round_robin.c
  
  Index: flood_round_robin.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/flood/flood_round_robin.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- flood_round_robin.c	3 Oct 2001 01:24:01 -0000	1.19
  +++ flood_round_robin.c	3 Jan 2002 15:45:01 -0000	1.20
  @@ -143,7 +143,7 @@
           while (cook)
           {
               if (cook != p->cookie)
  -                cookies = apr_pstrcat(p->pool, cookies, ";");
  +                cookies = apr_pstrcat(p->pool, cookies, ";", NULL);
   
               cookies = apr_pstrcat(p->pool, cookies, cook->name, "=", 
                                     cook->value, NULL);