]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Return with error if we dont support an algorithm.
authorGuenter Knauf <fuankg@apache.org>
Fri, 7 Jun 2013 08:08:55 +0000 (08:08 +0000)
committerGuenter Knauf <fuankg@apache.org>
Fri, 7 Jun 2013 08:08:55 +0000 (08:08 +0000)
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

index 3bc667f061629c98d0e714ef10b689ba43975ef3..ad865362ac9e6ccaaf9ab7e63aea9ab754b3bc01 100644 (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;