From 03191f3c90f9b6b508aa6ad08acff8b0bce47e84 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Fri, 11 Jul 2025 10:09:18 -0400 Subject: [PATCH] Test feed0[0-5].tst seems OK --- app/feeder.c | 2 +- lib/devsoc.c | 6 +++--- lib/gessql.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/feeder.c b/app/feeder.c index 4580235..99a8c60 100644 --- a/app/feeder.c +++ b/app/feeder.c @@ -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) { diff --git a/lib/devsoc.c b/lib/devsoc.c index d377806..f3cd433 100644 --- a/lib/devsoc.c +++ b/lib/devsoc.c @@ -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); diff --git a/lib/gessql.c b/lib/gessql.c index 875c978..90e658b 100644 --- a/lib/gessql.c +++ b/lib/gessql.c @@ -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) -- 2.47.3