Package: pound
Version: 2.4.3-1
Followup-For: Bug #517359

Here is a suggested patch for this bug.
It was tested on pound 2.4.3-1 and should work for other version (Etch).


--- http.c      2008-05-31 12:25:43.000000000 +0200
+++ ../pound-patched/http.c     2009-02-27 09:58:05.000000000 +0100
@@ -82,7 +82,7 @@
  * Read and write some binary data
  */
 static int
-copy_bin(BIO *const cl, BIO *const be, long cont, long *res_bytes, const int 
no_write)
+copy_bin(BIO *const cl, BIO *const be, long long cont, long long *res_bytes, 
const int no_write)
 {
     char        buf[MAXBUF];
     int         res;
@@ -165,10 +165,10 @@
  * Copy chunked
  */
 static int
-copy_chunks(BIO *const cl, BIO *const be, long *res_bytes, const int no_write, 
const long max_size)
+copy_chunks(BIO *const cl, BIO *const be, long long *res_bytes, const int 
no_write, const long long max_size)
 {
     char        buf[MAXBUF];
-    long        cont, tot_size;
+    long long        cont, tot_size;
     regmatch_t  matches[2];
     int         has_eol, res;
 
@@ -456,10 +456,10 @@
  * Apache log-file-style number format
  */
 static void
-log_bytes(char *res, const long cnt)
+log_bytes(char *res, const long long cnt)
 {
     if(cnt > 0L)
-        snprintf(res, LOG_BYTES_SIZE - 1, "%ld", cnt);
+        snprintf(res, LOG_BYTES_SIZE - 1, "%lld", cnt);
     else
         strcpy(res, "-");
     return;
@@ -493,7 +493,7 @@
                         headers_ok[MAXHEADERS], v_host[MAXBUF], 
referer[MAXBUF], u_agent[MAXBUF], u_name[MAXBUF],
                         caddr[MAXBUF], req_time[LOG_TIME_SIZE], 
s_res_bytes[LOG_BYTES_SIZE], *mh;
     SSL                 *ssl;
-    long                cont, res_bytes;
+    long long                cont, res_bytes;
     regmatch_t          matches[4];
     struct linger       l;
     double              start_req, end_req;
@@ -661,7 +661,7 @@
                 if(chunked)
                     headers_ok[n] = 0;
                 else
-                    cont = atol(buf);
+                    cont = atoll(buf);
                 break;
             case HEADER_ILLEGAL:
                 if(lstn->log_level > 0) {
@@ -1163,7 +1163,7 @@
                     }
                     break;
                 case HEADER_CONTENT_LENGTH:
-                    cont = atol(buf);
+                    cont = atoll(buf);
                     break;
                 case HEADER_LOCATION:
                     if(v_host[0] && need_rewrite(lstn->rewr_loc, buf, 
loc_path, lstn, cur_backend)) {

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-openvz-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pound depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libpcre3                      7.6-2.1    Perl 5 Compatible Regular Expressi
ii  libssl0.9.8                   0.9.8g-15  SSL shared libraries

pound recommends no packages.

pound suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to