Displaying 1 result from an estimated 1 matches for "get_remote_host".
1997 Jan 12
0
Apache 1.1.1 overflow
...fed into this buffer, along with the
string "apache=" and a number. The offending code reads:
void make_cookie(request_rec *r)
{
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 */
gettimeofday(&tv, &tz);
sprintf(new_...