httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apache-1.3/src/main util_uri.c
Date Sat, 17 Feb 2001 14:07:05 GMT
martin      01/02/17 06:07:05

  Modified:    src/main util_uri.c
  Log:
  Avoid potential core dump. This patch is a small part of a larger
  patch for the ap_unparse_uri_components() routine, and can be safely
  applied independently.
  Submitted by:	"Jeffrey W. Baker" <jwbaker@acm.org>
  Reviewed by:	Jim Jagielski, Martin Kraemer
  
  Revision  Changes    Path
  1.30      +3 -0      apache-1.3/src/main/util_uri.c
  
  Index: util_uri.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util_uri.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -u -r1.29 -r1.30
  --- util_uri.c	2001/02/09 08:52:09	1.29
  +++ util_uri.c	2001/02/17 14:07:04	1.30
  @@ -87,6 +87,9 @@
   {
       schemes_t *scheme;
   
  +    if (scheme_str == NULL)
  +        return 0;
  +
       for (scheme = schemes; scheme->name != NULL; ++scheme)
           if (strcasecmp(scheme_str, scheme->name) == 0)
               return scheme->default_port;
  
  
  

Mime
View raw message