From 03875e2ca2e651d9cd2d44221b98c0bf7a85cfd4 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 8 Jul 2025 19:00:19 -0400 Subject: [PATCH] cram-md5 mode trap the case the local password is crypted --- lib/lvleml.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 2.47.3