httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1490531 - /httpd/httpd/trunk/modules/lua/lua_passwd.c
Date Fri, 07 Jun 2013 08:08:55 GMT
Author: fuankg
Date: Fri Jun  7 08:08:55 2013
New Revision: 1490531

URL: http://svn.apache.org/r1490531
Log:
Return with error if we dont support an algorithm.
Modified error message slightly.

Modified:
    httpd/httpd/trunk/modules/lua/lua_passwd.c

Modified: httpd/httpd/trunk/modules/lua/lua_passwd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_passwd.c?rev=1490531&r1=1490530&r2=1490531&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_passwd.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_passwd.c Fri Jun  7 08:08:55 2013
@@ -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;



Mime
View raw message