httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Tue, 23 Oct 2001 09:41:54 GMT
jwoolley    01/10/23 02:41:54

  Modified:    server   core.c
  Log:
  Fix a segfault seen on daedalus earlier this evening.  All that was happening
  was that we forgot to check whether ctx->bb was empty, so when we pulled the
  first bucket, it would be the sentinel, and we'd segfault trying to apr_bucket_read
  the sentinel.
  
  Revision  Changes    Path
  1.81      +3 -0      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -d -u -r1.80 -r1.81
  --- core.c	2001/10/22 04:36:46	1.80
  +++ core.c	2001/10/23 09:41:54	1.81
  @@ -2871,6 +2871,9 @@
           apr_bucket *e;
           apr_bucket_brigade *newbb;
   
  +        if (APR_BRIGADE_EMPTY(ctx->b))
  +            return APR_EOF;
  +
           e = APR_BRIGADE_FIRST(ctx->b);
           rv = apr_bucket_read(e, &str, &len, mode);
   
  
  
  

Mime
View raw message