From 9ad1a25aedc195cb5490f4bf6e618cf327b0affa Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Fri, 4 Jul 2025 06:42:10 -0400 Subject: [PATCH] No authentication on clear chanel --- lib/lvleml.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/lvleml.c b/lib/lvleml.c index 3b52770..04eb6d6 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -753,10 +753,15 @@ while (proceed==true) { //(void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase); switch (phase) { case 0 : //are we encrypted and on the right port + if (soc_iscrypted(contact->socptr)==false) { + (void) transmit(contact,true,"%d 5.7.0 no authentication on clear chanel", + FAILED); + phase=999; //No need to go further + } break; case 1 : //check buffer if ((buffer==(char *)0)||(strlen(buffer)==0)) { - (void) transmit(contact,true,"%d 5.7.0 Missing auth type",FAILED); + (void) transmit(contact,true,"%d 5.7.1 Missing auth type",FAILED); phase=999; //No need to go further } break; @@ -775,7 +780,7 @@ while (proceed==true) { } if (vocloc[code]==(char *)0) { (void) rou_alert(0,"%s auth type <%s> unknown (Bug?)",OPEP,local); - (void) transmit(contact,true,"%d 5.7.0 bad authentication type",BADPAR); + (void) transmit(contact,true,"%d 5.7.2 bad authentication type",BADPAR); phase=999; //Trouble Trouble } break; -- 2.47.3