Lines 90-95
svn_config_read_auth_data(apr_hash_t **hash,
Link Here
|
90 |
if (kind == svn_node_file) |
90 |
if (kind == svn_node_file) |
91 |
{ |
91 |
{ |
92 |
svn_stream_t *stream; |
92 |
svn_stream_t *stream; |
|
|
93 |
svn_string_t *stored_realm; |
93 |
SVN_ERR_W(svn_stream_open_readonly(&stream, auth_path, pool, pool), |
94 |
SVN_ERR_W(svn_stream_open_readonly(&stream, auth_path, pool, pool), |
94 |
_("Unable to open auth file for reading")); |
95 |
_("Unable to open auth file for reading")); |
Lines 100-105
svn_config_read_auth_data(apr_hash_t **hash,
Link Here
|
100 |
apr_psprintf(pool, _("Error parsing '%s'"), |
101 |
apr_psprintf(pool, _("Error parsing '%s'"), |
101 |
svn_dirent_local_style(auth_path, pool))); |
102 |
svn_dirent_local_style(auth_path, pool))); |
|
|
103 |
stored_realm = apr_hash_get(*hash, SVN_CONFIG_REALMSTRING_KEY, |
104 |
APR_HASH_KEY_STRING); |
105 |
|
106 |
if (!stored_realm || strcmp(stored_realm->data, realmstring) != 0) |
107 |
*hash = NULL; /* Hash collision, or somebody tampering with storage */ |
108 |
|
102 |
SVN_ERR(svn_stream_close(stream)); |
109 |
SVN_ERR(svn_stream_close(stream)); |
103 |
} |
110 |
} |
104 |
Patch against 1.8.9: |
111 |
Patch against 1.8.9: |