1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Return with error if we dont support an algorithm.

Modified error message slightly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Guenter Knauf
2013-06-07 08:08:55 +00:00
parent 099561a7e1
commit 51cd620292

View File

@@ -167,8 +167,9 @@ int mk_password_hash(passwd_ctx *ctx)
default:
ctx->errstr = apr_psprintf(ctx->pool,
"mk_password_hash(): BUG: invalid algorithm %d",
"mk_password_hash(): unsupported algorithm %d",
ctx->alg);
ret = ERR_GENERAL;
}
memset(pw, '\0', strlen(pw));
return ret;