Fixes for new binkp requests

This commit is contained in:
Michiel Broek 2004-01-11 15:34:46 +00:00
parent 3aa81d1353
commit 2257b2bc25

View File

@ -976,8 +976,8 @@ TrType binkp_receiver(void)
bp.local_EOB?"True":"False", bp.remote_EOB?"True":"False", bp.messages); bp.local_EOB?"True":"False", bp.remote_EOB?"True":"False", bp.messages);
if (bp.local_EOB && bp.remote_EOB) { if (bp.local_EOB && bp.remote_EOB) {
Syslog('b', "Binkp: receiver detects both sides in EOB state"); Syslog('b', "Binkp: receiver detects both sides in EOB state");
if (bp.messages < 3) { if ((bp.messages < 3) || binkp_pendingfiles()) {
Syslog('b', "Binkp: receiver detected end of session, stay in RxWaitF"); Syslog('b', "Binkp: receiver detected end of session or pendingfiles, stay in RxWaitF");
return Ok; return Ok;
} else { } else {
bp.batchnr++; bp.batchnr++;
@ -1247,9 +1247,11 @@ TrType binkp_transmitter(void)
eff_remote = remote; eff_remote = remote;
tosend = create_filelist(eff_remote, nonhold_mail, 0); tosend = create_filelist(eff_remote, nonhold_mail, 0);
respond = respond_wazoo(); if ((respond = respond_wazoo()) != NULL) {
for (tsl = tosend; tsl->next; tsl = tsl ->next); for (tsl = tosend; tsl->next; tsl = tsl ->next);
tsl->next = respond; tsl->next = respond;
Syslog('+', "Binkp: added requested files");
}
/* /*
* Build a new filelist from the existing filelist. * Build a new filelist from the existing filelist.
@ -2121,7 +2123,6 @@ void binkp_clear_filelist(void)
} }
tidy_filelist(tosend, TRUE); tidy_filelist(tosend, TRUE);
tidy_filelist(respond, 0);
tosend = NULL; tosend = NULL;
respond = NULL; respond = NULL;
} }