Received: by taz.hyperreal.com (8.7.6/V2.0) id DAA22547; Wed, 6 Nov 1996 03:23:11 -0800 (PST) Received: by taz.hyperreal.com (8.7.6/V2.0) id DAA22539; Wed, 6 Nov 1996 03:23:09 -0800 (PST) Date: Wed, 6 Nov 1996 03:23:09 -0800 (PST) From: Roy Fielding Message-Id: <199611061123.DAA22539@taz.hyperreal.com> To: apache-cvs@hyperreal.com Subject: cvs commit: apache/src http_protocol.c Sender: owner-apache-cvs@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com fielding 96/11/06 03:23:09 Modified: src http_protocol.c Log: Its a good thing to handle error condition from time system call. Doh! Revision Changes Path 1.72 +3 -0 apache/src/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apache/src/http_protocol.c,v retrieving revision 1.71 retrieving revision 1.72 diff -C3 -r1.71 -r1.72 *** http_protocol.c 1996/11/06 10:30:38 1.71 --- http_protocol.c 1996/11/06 11:23:08 1.72 *************** *** 253,258 **** --- 253,261 ---- char *if_match = table_get(r->headers_in, "If-Match"); time_t now = time(NULL); + if (now < 0) + now = r->request_time; + table_set(r->headers_out, "Last-Modified", gm_timestr_822(r->pool, (mtime > now) ? now : mtime));