diff options
author | Yann Ylavic <ylavic@apache.org> | 2017-02-03 09:11:03 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2017-02-03 09:11:03 +0000 |
commit | 6b7f4310e718a93c80bd48702db03658469094e9 (patch) | |
tree | ba61bc204975ecbe3c5c41a447bf76797af5203e /support/passwd_common.c | |
parent | ce23a724d7b574acd0d2a024cd6d212cd8304cc4 (diff) | |
download | httpd-6b7f4310e718a93c80bd48702db03658469094e9.tar.gz |
htpasswd: report the right limit when get_password() overflows.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/passwd_common.c')
-rw-r--r-- | support/passwd_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/passwd_common.c b/support/passwd_common.c index 113236c399..664e509b95 100644 --- a/support/passwd_common.c +++ b/support/passwd_common.c @@ -168,7 +168,7 @@ int get_password(struct passwd_ctx *ctx) err_too_long: ctx->errstr = apr_psprintf(ctx->pool, "password too long (>%" APR_SIZE_T_FMT ")", - ctx->out_len - 1); + sizeof(buf) - 1); return ERR_OVERFLOW; } |