]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving disconnect message
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 20 Aug 2025 09:02:33 +0000 (05:02 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 20 Aug 2025 09:02:33 +0000 (05:02 -0400)
lib/lvleml.c

index a64c228fc2720bc9058f038f87b3920fd7f942dc..f3061d76808bf897a7dc9cc9c0d96b77fdd0565a 100644 (file)
@@ -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;