httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/ap ap_buckets_pipe.c
Date Thu, 31 Aug 2000 16:54:12 GMT
trawick     00/08/31 09:54:12

  Modified:    src/ap   ap_buckets_pipe.c
  Log:
  Don't segfault if there was no bucket *after* the input pipe bucket.
  
  Revision  Changes    Path
  1.4       +3 -1      apache-2.0/src/ap/ap_buckets_pipe.c
  
  Index: ap_buckets_pipe.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/ap/ap_buckets_pipe.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ap_buckets_pipe.c	2000/08/30 01:46:03	1.3
  +++ ap_buckets_pipe.c	2000/08/31 16:54:12	1.4
  @@ -92,7 +92,9 @@
           b = ap_bucket_make_heap(b, buf, l, 1, &toss);
           b->read(b, str, len, block); /* set str to new location of data */
   
  -        b->next->prev = a;
  +        if (b->next) {
  +            b->next->prev = a;
  +        }
           a->next = b->next;
           b->next = a;
           a->prev = b;
  
  
  

Mime
View raw message