You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Brian Behlendorf <br...@hyperreal.com> on 1996/04/22 23:50:53 UTC
cvs commit: apache/src mod_cookies.c
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 */