aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kaminski <michael.kaminski@nytimes.com>2016-01-09 14:14:21 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-09 14:17:05 +0200
commiteb80640a4753350f000cbe0ee49f5a6a2bd5bc75 (patch)
tree2edcda9956978f445089d2f51fba8dd3ca3f4616
parent47123239e481774e82e3e8fe01c5834b58eac40d (diff)
downloadvmod-basicauth-eb80640a4753350f000cbe0ee49f5a6a2bd5bc75.tar.gz
vmod-basicauth-eb80640a4753350f000cbe0ee49f5a6a2bd5bc75.tar.bz2
Bugfix.
* src/vmod_basicauth.c (match): Fix length computation.
-rw-r--r--src/vmod_basicauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmod_basicauth.c b/src/vmod_basicauth.c
index a6af785..9dc99c3 100644
--- a/src/vmod_basicauth.c
+++ b/src/vmod_basicauth.c
@@ -165,7 +165,7 @@ static int
match(const char *pass, const char *hash, struct priv_data *pd)
{
struct matcher *p;
- size_t plen = strlen(pass);
+ size_t plen = strlen(hash);
for (p = match_tab; p->cm_match; p++) {
if (p->cm_len < plen &&

Return to:

Send suggestions and report system problems to the System administrator.