From: Jean-Marc Pigeon (Delson) Date: Tue, 8 Jul 2025 23:00:19 +0000 (-0400) Subject: cram-md5 mode trap the case the local password is crypted X-Git-Tag: tag-0.13~15 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=03875e2ca2e651d9cd2d44221b98c0bf7a85cfd4;p=jmp%2Fmailleur cram-md5 mode trap the case the local password is crypted --- diff --git a/lib/lvleml.c b/lib/lvleml.c index edf8f26..cc82cb0 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -607,7 +607,13 @@ while (proceed==true) { phase=999; //no need to go further } break; - case 5 : { //comparing challenge answer + case 5 : //check if password is in clear text + if (passwd[0]=='$') { //local password crypted? + (void) transmit(contact,true,"%d-5.8.1 password is crypted",BADPAR); + phase=999; //no need to go further + } + break; //exiting from loop + case 6 : { //comparing challenge answer char *local; char *hexa; @@ -619,6 +625,7 @@ while (proceed==true) { hexa=rou_freestr(hexa); local=rou_freestr(local); } + break; default : //SAFE Guard proceed=false; break;