]> git.pld-linux.org Git - packages/apache.git/commitdiff
- form of this patch aplready applied
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 2 Dec 2005 22:09:50 +0000 (22:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    httpd-2.0.46-md5dig.patch -> 1.2

httpd-2.0.46-md5dig.patch [deleted file]

diff --git a/httpd-2.0.46-md5dig.patch b/httpd-2.0.46-md5dig.patch
deleted file mode 100644 (file)
index 5f841bd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-
-- use a sensibly % 64 sized buffer
-- cope with short reads properly
-- remove redundant variable
-
---- httpd-2.0.46/server/util_md5.c.md5dig
-+++ httpd-2.0.46/server/util_md5.c
-@@ -198,16 +198,14 @@
- AP_DECLARE(char *) ap_md5digest(apr_pool_t *p, apr_file_t *infile)
- {
-     apr_md5_ctx_t context;
--    unsigned char buf[1000];
--    long length = 0;
--    apr_size_t nbytes;
-+    unsigned char buf[4096];
-+    apr_size_t nbytes = sizeof buf;
-     apr_off_t offset = 0L;
-     apr_md5_init(&context);
--    nbytes = sizeof(buf);
-     while (apr_file_read(infile, buf, &nbytes) == APR_SUCCESS) {
--      length += nbytes;
-       apr_md5_update(&context, buf, nbytes);
-+        nbytes = sizeof(buf);
-     }
-     apr_file_seek(infile, APR_SET, &offset);
-     return ap_md5contextTo64(p, &context);
This page took 0.240772 seconds and 4 git commands to generate.