From daad3ff3cf6fda83a1325fcac3c9c4d221b4c86d Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 20 Aug 2025 05:02:33 -0400 Subject: [PATCH] Improving disconnect message --- lib/lvleml.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/lvleml.c b/lib/lvleml.c index a64c228..f3061d7 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -818,8 +818,11 @@ while (proceed==true) { } } if (vocloc[code]==(char *)0) { + static char *cmt="bad authentication type"; + (void) rou_alert(0,"%s auth type <%s> unknown (Bug?)",OPEP,local); - (void) eml_transmit(contact,true,"%d 5.7.2 bad authentication type",BADPAR); + (void) setterminator(contact,cmt); + (void) eml_transmit(contact,true,"%d 5.7.2 %s",BADPAR,cmt); phase=999; //Trouble Trouble } break; @@ -843,8 +846,9 @@ while (proceed==true) { (void) get_auth_digest_md5(contact,&rmtpass); break; default : //not yet implemented - (void) eml_transmit(contact,true,"%d 5.7.5 Unknown auth mode",FAILED); - (void) rou_alert(0,"%s auth type <%d> not yet implemented",OPEP); + (void) rou_alert(0,"%s auth type <%d> not yet implemented (Bug!)", + OPEP,code); + (void) eml_transmit(contact,true,"%d 5.7.5 Unexpected auth mode",FAILED); phase=999; break; } @@ -865,6 +869,7 @@ while (proceed==true) { else { (void) log_fprintlog(contact->logptr,true,fmt,auth); (void) eml_transmit(contact,true,"%d 5.7.5 Authentication successful",IDOK); + contact->credit+=2; } } break; -- 2.47.3