dgaudet     98/03/25 10:14:57

  Modified:    src/main util_uri.c
  Log:
  Fix Martin's previous checkin... it failed the mod_test_util_uri.c
  testsuite...  Is there some other bug I'm not seeing Martin?  There was
  some bogus code previously (namely the test uptr->port == port... 'cause
  it was always true... thanks for spotting that).
  
  The test_util_uri thing doesn't test bogus ports, or any other bogosities.
  That would be a welcome addition.
  
  Revision  Changes    Path
  1.14      +1 -1      apache-1.3/src/main/util_uri.c
  
  Index: util_uri.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/util_uri.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- util_uri.c        1998/03/25 15:36:10     1.13
  +++ util_uri.c        1998/03/25 18:14:55     1.14
  @@ -520,7 +520,7 @@
        if (uri != s) {
            port = strtol(uptr->port_str, &endstr, 10);
            uptr->port = port;
  -         if (endstr == uri) {
  +         if (*endstr == '\0') {
                goto deal_with_path;
            }
            /* Invalid characters after ':' found */
  
  
  

Reply via email to