binkp got fix

This commit is contained in:
Michiel Broek 2004-01-02 13:57:48 +00:00
parent 4bdd094e91
commit b9279177cb
2 changed files with 5 additions and 11 deletions

View File

@ -249,7 +249,6 @@ binkpend:
/* /*
* Deinit * Deinit
*/ */
Syslog('b', "Binkp: deinit start");
if (bp.rname) if (bp.rname)
free(bp.rname); free(bp.rname);
if (bp.MD_Challenge) if (bp.MD_Challenge)
@ -258,7 +257,6 @@ binkpend:
free(bp.rxbuf); free(bp.rxbuf);
if (bp.txbuf) if (bp.txbuf)
free(bp.txbuf); free(bp.txbuf);
Syslog('b', "Binkp: deinit end");
rc = abs(rc); rc = abs(rc);
Syslog('b', "Binkp: rc=%d", rc); Syslog('b', "Binkp: rc=%d", rc);
return rc; return rc;
@ -1440,8 +1438,6 @@ int binkp_send_frame(int cmd, char *buf, int len)
rc = PUT(buf, len); rc = PUT(buf, len);
FLUSHOUT(); FLUSHOUT();
binkp_settimer(BINKP_TIMEOUT); binkp_settimer(BINKP_TIMEOUT);
Syslog('b', "Binkp: send %s frame, len=%d rc=%d", cmd?"CMD":"DATA", len, rc);
return rc; return rc;
} }
@ -1706,8 +1702,6 @@ int binkp_poll_frame(void)
bp.remote_msgs++; bp.remote_msgs++;
bcmd = bp.rxbuf[0]; bcmd = bp.rxbuf[0];
Syslog('b', "Binkp: got %s %s", bstate[bcmd], printable(bp.rxbuf+1, 0)); Syslog('b', "Binkp: got %s %s", bstate[bcmd], printable(bp.rxbuf+1, 0));
} else {
Syslog('b', "Binkp: got data frame %d bytes", bp.rxlen);
} }
rc = 1; rc = 1;
break; break;
@ -1822,7 +1816,6 @@ int binkp_process_messages(void)
for (tmp = bll; tmp; tmp = tmp->next) { for (tmp = bll; tmp; tmp = tmp->next) {
if ((strcmp(lname, tmp->remote) == 0) && (lsize == tmp->size) && (ltime == tmp->date)) { if ((strcmp(lname, tmp->remote) == 0) && (lsize == tmp->size) && (ltime == tmp->date)) {
Found = TRUE; Found = TRUE;
tmp->state = Got;
if (tmp->state == Sending) { if (tmp->state == Sending) {
Syslog('+', "Binkp: remote refused %s", tmp->remote); Syslog('+', "Binkp: remote refused %s", tmp->remote);
fclose(bp.txfp); fclose(bp.txfp);
@ -1832,6 +1825,7 @@ int binkp_process_messages(void)
} else { } else {
Syslog('+', "Binkp: remote GOT \"%s\"", tmp->remote); Syslog('+', "Binkp: remote GOT \"%s\"", tmp->remote);
} }
tmp->state = Got;
break; break;
} }
} }

View File

@ -4,7 +4,7 @@
* Purpose: Fidonet mailer * Purpose: Fidonet mailer
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2003 * Copyright (C) 1997-2004
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -138,15 +138,15 @@ void die(int onsig)
if (gotfiles) if (gotfiles)
CreateSema((char *)"mailin"); CreateSema((char *)"mailin");
t_end = time(NULL);
Syslog(' ', "MBCICO finished in %s", t_elapsed(t_start, t_end));
/* /*
* Free memory * Free memory
*/ */
free_mem(); free_mem();
deinitnl(); deinitnl();
t_end = time(NULL);
Syslog(' ', "MBCICO finished in %s", t_elapsed(t_start, t_end));
if (envptr) if (envptr)
free(envptr); free(envptr);
ExitClient(onsig); ExitClient(onsig);