httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <v.j.orlikow...@gte.net>
Subject [PATCH] Not quite innocuous typo
Date Tue, 05 Sep 2000 17:46:37 GMT
Hmm, this could pose a slight problem....
Checking the pointer, rather than what it's pointing to for length.

Index: src/ap/ap_buckets_pipe.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/ap/ap_buckets_pipe.c,v
retrieving revision 1.5
diff -u -r1.5 ap_buckets_pipe.c
--- ap_buckets_pipe.c   2000/09/04 05:42:20     1.5
+++ ap_buckets_pipe.c   2000/09/05 17:48:15
@@ -85,7 +85,7 @@
        free(buf);
         return rv;
     }
-    if (len > 0) {
+    if (*len > 0) {
         a = ap_bucket_create_pipe(bd->thepipe);
         b = ap_bucket_make_heap(b, buf, *len, 0, NULL);

Victor
-- 
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com

Mime
View raw message