httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_protocol.c
Date Thu, 10 Aug 2000 13:28:52 GMT
coar        00/08/10 06:28:46

  Modified:    src/main http_protocol.c
  Log:
  	Whoops, head off a potential segfault.  The array is only
  	created at need, so check for its existence before trying
  	to peek into it.
  
  Revision  Changes    Path
  1.104     +3 -1      apache-2.0/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -u -r1.103 -r1.104
  --- http_protocol.c	2000/08/10 12:46:52	1.103
  +++ http_protocol.c	2000/08/10 13:28:45	1.104
  @@ -1591,7 +1591,9 @@
   		       (r->allowed & (1 << M_UNLOCK))    ? ", UNLOCK"    : "",
   		       ", TRACE",
   		       NULL);
  -    if ((r->allowed & (1 << M_INVALID)) && (r->allowed_xmethods->nelts))
{
  +    if ((r->allowed & (1 << M_INVALID))
  +	&& (r->allowed_xmethods != NULL)
  +	&& (r->allowed_xmethods->nelts != 0)) {
   	int i;
   	char **xmethod = (char **) r->allowed_xmethods->elts;
   
  
  
  

Mime
View raw message