httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.com>
Subject cvs commit: apache/src mod_cookies.c
Date Mon, 22 Apr 1996 21:50:53 GMT
brian       96/04/22 14:50:52

  Modified:    src       mod_cookies.c
  Log:
  Submitted by:	Brian Behlendorf
  
  Fixes a bugs which caused the hostname or IP number of a remote host to get
  truncated when a cookie was created.
  
  Revision  Changes    Path
  1.8       +4 -2      apache/src/mod_cookies.c
  
  Index: mod_cookies.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_cookies.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -C3 -r1.7 -r1.8
  *** mod_cookies.c	1996/04/04 14:54:01	1.7
  --- mod_cookies.c	1996/04/22 21:50:50	1.8
  ***************
  *** 110,117 ****
        struct timeval tv;
        char new_cookie[100];	/* blurgh */
        char *dot;
  !     const char *rname = get_remote_host(r->connection, r->per_dir_config,
  ! 				  REMOTE_NAME);
        struct timezone tz = { 0 , 0 };
    
        if ((dot = strchr(rname,'.'))) *dot='\0';	/* First bit of hostname */
  --- 110,119 ----
        struct timeval tv;
        char new_cookie[100];	/* blurgh */
        char *dot;
  !     const char *rname = pstrdup(r->pool, 
  ! 				get_remote_host(r->connection, r->per_dir_config,
  ! 						REMOTE_NAME));
  !     
        struct timezone tz = { 0 , 0 };
    
        if ((dot = strchr(rname,'.'))) *dot='\0';	/* First bit of hostname */
  
  
  

Mime
View raw message