You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Joe Orton <jo...@light.plus.com> on 2000/12/21 21:42:57 UTC

[PATCH] fix OPTIONS requests

An OPTIONS request was crashing the server, this fixes it:

Index: http_protocol.c
===================================================================
RCS file: /home/joe/lib/cvsroot/apache2/modules/http/http_protocol.c,v
retrieving revision 1.259
diff -u -r1.259 http_protocol.c
--- http_protocol.c	2000/12/21 01:44:28	1.259
+++ http_protocol.c	2000/12/21 20:38:13
@@ -2161,7 +2161,7 @@
     char *buff;
     ap_bucket *b;
     ap_bucket_brigade *bb;
-    apr_size_t len;
+    apr_size_t len = 0;
     header_struct h;
 
     if (r->assbackwards)