mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
bubble up an error if none of the passhrases work
previously, the un-decodable z->encoded would get set to NULL but success would be returned git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874674 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -391,6 +391,8 @@ static apr_status_t decrypt_string(request_rec * r, const apr_crypto_t *f,
|
||||
return res;
|
||||
}
|
||||
|
||||
res = APR_ECRYPT; /* in case we exhaust all passphrases */
|
||||
|
||||
/* try each passphrase in turn */
|
||||
for (; i < dconf->passphrases->nelts; i++) {
|
||||
const char *passphrase = APR_ARRAY_IDX(dconf->passphrases, i, char *);
|
||||
|
Reference in New Issue
Block a user