From: Guenter Knauf Date: Fri, 7 Jun 2013 08:08:55 +0000 (+0000) Subject: Return with error if we dont support an algorithm. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7945be8437e06f7f39ac4b8f515a13d3c4edea;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/lua/lua_passwd.c b/modules/lua/lua_passwd.c index 3bc667f0616..ad865362ac9 100644 --- a/modules/lua/lua_passwd.c +++ b/modules/lua/lua_passwd.c @@ -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;