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) {
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;
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;
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) {
}
break;
case 2 : //closing connexion
- (void) closeplain(soc);
break;
case 3 : //fee memory used by socket
soc=freesocket(soc);
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;
}
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)