subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1550772 - /subversion/trunk/subversion/libsvn_subr/config_auth.c
Date Fri, 13 Dec 2013 17:22:02 GMT
Author: rhuijben
Date: Fri Dec 13 17:22:02 2013
New Revision: 1550772

URL: http://svn.apache.org/r1550772
Log:
* subversion/libsvn_subr/config_auth.c
  (svn_config_read_auth_data): Following up on r1550691 compare the right kind
    of string.

Modified:
    subversion/trunk/subversion/libsvn_subr/config_auth.c

Modified: subversion/trunk/subversion/libsvn_subr/config_auth.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/config_auth.c?rev=1550772&r1=1550771&r2=1550772&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/config_auth.c (original)
+++ subversion/trunk/subversion/libsvn_subr/config_auth.c Fri Dec 13 17:22:02 2013
@@ -89,7 +89,7 @@ svn_config_read_auth_data(apr_hash_t **h
   if (kind == svn_node_file)
     {
       svn_stream_t *stream;
-      const char *stored_realm;
+      svn_string_t *stored_realm;
 
       SVN_ERR_W(svn_stream_open_readonly(&stream, auth_path, pool, pool),
                 _("Unable to open auth file for reading"));
@@ -104,7 +104,7 @@ svn_config_read_auth_data(apr_hash_t **h
 
       stored_realm = svn_hash_gets(*hash, SVN_CONFIG_REALMSTRING_KEY);
 
-      if (!stored_realm || strcmp(stored_realm, realmstring) != 0)
+      if (!stored_realm || strcmp(stored_realm->data, realmstring) != 0)
         *hash = NULL; /* Hash collision, or somebody tampering with storage */
     }
 



Mime
View raw message