From: Jean-Marc Pigeon (Delson) Date: Wed, 20 Aug 2025 09:02:33 +0000 (-0400) Subject: Improving disconnect message X-Git-Tag: end-0.15~101 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=daad3ff3cf6fda83a1325fcac3c9c4d221b4c86d;p=jmp%2Fmailleur Improving disconnect message --- 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;