[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] mod_authz_svn crasher and logic error

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-07-23 01:14:27 CEST

Robert Spier <rspier@pobox.com> writes:

> Index: mod_authz_svn.c
> ===================================================================
> --- mod_authz_svn.c (revision 6536)
> +++ mod_authz_svn.c (working copy)
> @@ -307,8 +307,8 @@
>
> apr_uri_parse(r->pool, dest_uri, &parsed_dest_uri);
>
> - if (strcmp(parsed_dest_uri.hostname, r->parsed_uri.hostname)
> - || strcmp(parsed_dest_uri.scheme, r->parsed_uri.scheme)) {
> + if (strcmp(parsed_dest_uri.hostname, parsed_dest_uri.hostname)
> + || strcmp(parsed_dest_uri.scheme, parsed_dest_uri.scheme)) {

Huh? What is this meant to do? strcmp(foo, foo) is a strange test!

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 23 01:15:16 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.