]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Bug fix (no MX detection) tag-0.9
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 24 Jun 2025 10:59:45 +0000 (06:59 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 24 Jun 2025 10:59:45 +0000 (06:59 -0400)
app/sorter.c
lib/lvleml.c

index a05a381bc7775387ccec7079af0b16068b6d294b..88acadca66ee4df34a819723977cd05d9413a68d 100644 (file)
@@ -136,7 +136,7 @@ while (proceed==true) {
       action|=scantrans(EXTRANS,true);
       break;
     case 3      :       //got signal
-      action|=scantrans(EXTRANS,true);
+      action|=scantrans(EXDONE,false);
       break;
     case 4      :       //one passe only?
       if (foreground==true)
index b9e7c32d41c7e933e160d909d8dffa7001a9acd3..43bbbb4370c50515b237d390d6aecdf879b03884 100644 (file)
@@ -1066,8 +1066,12 @@ while (proceed==true) {
           }
          mxs++;
         }
-      if (rmt->socptr==(SOCPTR *)0)
-        phase=999;      //No NX found!
+      if (rmt->socptr==(SOCPTR *)0) {
+        (void) rou_alert(0,"%s Found NO MX available for domain <%s>",
+                            OPEP,dstdomain);
+        rmt=close_mx(rmt);      //closing remote connection
+        phase=999;              //No NX found!
+        }
       break;
     case 3      :       //waitin MX signon
       int res;