]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Test feed0[0-5].tst seems OK
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 11 Jul 2025 14:09:18 +0000 (10:09 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Fri, 11 Jul 2025 14:09:18 +0000 (10:09 -0400)
app/feeder.c
lib/devsoc.c
lib/gessql.c

index 45802352226d4eefb81786fd6872dcbb806ff41d..99a8c60a25e61f10b5dca1a2b941420b4bfdaeae 100644 (file)
@@ -490,7 +490,7 @@ tocheck=strlen(line);
 phase=0;
 proceed=true;
 while (proceed==true) {
-  (void) rou_alert(0,"%s JMPDBG, phase='%d'",OPEP,phase);
+  //(void) rou_alert(0,"%s JMPDBG, phase='%d'",OPEP,phase);
   switch (phase) {
     case 0      :       //do we have a "..." sequence at the end
       if (tocheck>0) {
index d377806cab645d594afc5138b05e69a11b2aac8a..f3cd43317a953fc548e39d1edf78e4556582dcf1 100644 (file)
@@ -777,7 +777,7 @@ while (proceed==true) {
           phase=999;
           break;
         case  0 :
-          (void) rou_alert(1,"%s Unable establish connection with <%s> "
+          (void) rou_alert(1,"%s Unable to establish connection with <%s> "
                              "within %d sec",OPEP,ip,swait);
           (void) close(handle);
           phase=999;
@@ -788,7 +788,7 @@ while (proceed==true) {
       break;
     case 8      :       //checking socket status
       if ((status=checksockstat(handle))!=0) {
-        (void) rou_alert(0,"%s  Unable establish socklink with <%s:%s> (error=<%s>)",
+        (void) rou_alert(0,"%s  Unable to establish socklink with <%s:%s> (error=<%s>)",
                            OPEP,ip,port,strerror(status));
         (void) close(handle);
         phase=999;
@@ -1468,6 +1468,7 @@ while (proceed==true) {
     case 1      :       //shutting down the TCP link
       switch (soc->proto) {
         case pro_smtp           :       //plain socket
+          (void) closeplain(soc);
           break;
         case pro_starttls       :       //plain socket + STARTTLS
           if (soc->modtls==true) {
@@ -1488,7 +1489,6 @@ while (proceed==true) {
         }
       break;
     case 2      :       //closing connexion
-      (void) closeplain(soc);
       break;
     case 3      :       //fee memory used by socket
       soc=freesocket(soc);
index 875c978762d1709846bd315c83f59817b1ac8350..90e658b3934d6104d34b8e865def1481f24891a3 100644 (file)
@@ -159,7 +159,7 @@ proceed=true;
 while (proceed==true) {
   switch (phase) {
     case 0      :       //checking parameters
-      if ((usr==(USRTYP **)0)||(email=(char *)0)||(strlen(email)==0)) {
+      if ((usr==(USRTYP **)0)||(email==(char *)0)||(strlen(email)==0)) {
         (void) rou_alert(0,"%s usr=<%p> or email=<%s> sing (Bug?)",OPEP,usr,email);
         phase=999;
         }
@@ -191,7 +191,7 @@ while (proceed==true) {
     case 3      :       //user data extraction
       isok=true;
       locusr=(USRTYP *)calloc(1,sizeof(USRTYP));
-      for (int i=0;i<(sizeof(usrfield)/sizeof(FLDTYP))&&(isok==true);i++) {
+      for (int i=0;(usrfield[i].name!=(char *)0)&&(isok==true);i++) {
         char *locval;
       
         if ((locval=sql_getvalue(sqlptr,rs,0,usrfield[i].name))==(char *)0)