From 51cd620292a7d740807ba969537d2f3fe8e5fd31 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Fri, 7 Jun 2013 08:08:55 +0000 Subject: [PATCH] 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 --- modules/lua/lua_passwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lua/lua_passwd.c b/modules/lua/lua_passwd.c index 3bc667f061..ad865362ac 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;