File: 10_bts521965.patch

package info (click to toggle)
libapache2-mod-python 3.3.1-11
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 3,212 kB
  • ctags: 2,284
  • sloc: python: 7,278; ansic: 6,556; lex: 246; makefile: 234; sh: 153
file content (15 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: fix a FTBFS due to new apr > 1.3.x (bb is the bucket brigade)
Origin: http://www.modpython.org/pipermail/mod_python/2008-October/025724.html
Bug-Debian: http://bugs.debian.org/521965

--- a/src/connobject.c
+++ b/src/connobject.c
@@ -139,7 +139,7 @@ static PyObject * _conn_read(conn_rec *c
     bytes_read = 0;
 
     while ((bytes_read < len || len == 0) &&
-           !(b == APR_BRIGADE_SENTINEL(b) ||
+           !(b == APR_BRIGADE_SENTINEL(bb) ||
              APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
 
         const char *data;