httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_balancer.c
Date Fri, 13 Aug 2004 12:11:50 GMT
trawick     2004/08/13 05:11:50

  Modified:    modules/proxy proxy_balancer.c
  Log:
  fix some const issues with string searching
  
  Revision  Changes    Path
  1.8       +3 -3      httpd-2.0/modules/proxy/proxy_balancer.c
  
  Index: proxy_balancer.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_balancer.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- proxy_balancer.c	11 Aug 2004 23:08:34 -0000	1.7
  +++ proxy_balancer.c	13 Aug 2004 12:11:50 -0000	1.8
  @@ -63,8 +63,8 @@
       const char *start_cookie;
   
       if ((cookies = apr_table_get(r->headers_in, "Cookie"))) {
  -        for (start_cookie = strstr(cookies, name); start_cookie; 
  -             start_cookie = strstr(start_cookie + 1, name)) {
  +        for (start_cookie = ap_strstr_c(cookies, name); start_cookie; 
  +             start_cookie = ap_strstr_c(start_cookie + 1, name)) {
               if (start_cookie == cookies ||
                   start_cookie[-1] == ';' ||
                   start_cookie[-1] == ',' ||
  @@ -244,7 +244,7 @@
       const char *path = NULL;
       
       if (scheme)
  -        path = strchr(scheme + 3, '/');
  +        path = ap_strchr_c(scheme + 3, '/');
   
       /* we break the URL into host, port, uri */
       if (!worker) {
  
  
  

Mime
View raw message