]> granicus.if.org Git - apache/commitdiff
Make mod_usertrack compile cleanly. Not tested yet.
authorRyan Bloom <rbb@apache.org>
Fri, 31 Dec 1999 17:39:42 +0000 (17:39 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 31 Dec 1999 17:39:42 +0000 (17:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84384 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_usertrack.c

index 4ded3a0aeea9ad12a00913205eed9acd78e16ee2..736af5535451105b89b55197cfaade8d539d1ff2 100644 (file)
@@ -182,7 +182,12 @@ static void make_cookie(request_rec *r)
 
     if (cls->expires) {
         struct tm *tms;
-        time_t when = r->request_time + cls->expires;
+        ap_time_t *when = NULL;
+        ap_int64_t req_time;
+        
+        ap_make_time(&when, r->pool);
+        ap_get_curtime(when, &req_time);
+        ap_set_curtime(when,  req_time + cls->expires);
 
 #ifndef MILLENIAL_COOKIES
         /*