{
#define OPEP "gessql.c:update_remote,"
-static const char *upd= "UPDATE "RMTTBL"SET "
+static const char *upd= "UPDATE "RMTTBL" SET "
"lastscan='%s',lastupdate='%s',"
"credit=%d,listing=%s,reverse=%s "
"WHERE remoteip='%s'";
update=sql_fromunixtime(sqlptr,srv->update);
listing=sql_gooddata(sqlptr,srv->listing);
reverse=sql_gooddata(sqlptr,srv->reverse);
-if (sql_request(sqlptr,upd,lastscan,srv->credit,listing,reverse,srv->rmtip)!=1) {
+if (sql_request(sqlptr,upd,lastscan,update,srv->credit,listing,reverse,srv->rmtip)!=1) {
(void) rou_alert(0,"%s Unable to update remote_ip <%s> (Database?)",
OPEP,srv->rmtip);
isok=false;
phase=0;
proceed=true;
while (proceed==true) {
- //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
+ (void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase);
switch (phase){
case 0 : //check for binding
if (contact==(CONTYP *)0) {