tpop3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tpop3d-discuss] auth_mysql problem


From: Tomasz Matuszewski
Subject: Re: [tpop3d-discuss] auth_mysql problem
Date: Sat, 6 Sep 2003 20:39:02 +0200
User-agent: Mutt/1.4.1i

On Sat,  6 September 2003 at 14:48:56 +0200, Jakob Hirsch wrote:
> Tomasz Matuszewski wrote:
> 
> > mysql, but hash is of incorrect length 23 (expecting 8 or 16)
> 
> wow, seems that nobody ever user mysql password hashes (since I don't think
> the code for it has ever changed).
> This patch fixes it:
> 
> --- tpop3d-1.5.1/password.c     Tue Jul 15 01:31:20 2003
> +++ tpop3d-1.5.1-2/password.c   Sat Sep  6 14:45:27 2003
> @@ -258,7 +258,7 @@
>          mysql_make_scrambled_password(hash, pass);
>          /* The MySQL password format changed, and we should accept either a
> 16-
>           * or 8-character long hash. */
> -        switch (n = strlen(pwhash)) {
> +        switch (n = strlen(realhash)) {
>              case 8:
>                  return strncmp(hash, realhash, 8) == 0;
> 
> 
> -------- Thus wrote Jakob Hirsch --------
thx, now all works great!
-- 
Tomasz Matuszewski, address@hidden, gg: 895856, tel: +48(605)052-627
"Jeden anioł nie spełnia dwóch poselstw." Talmud


reply via email to

[Prev in Thread] Current Thread [Next in Thread]