Fixed a bug for mbfido tic to protect against King-FIX v.1.26.Universal

This commit is contained in:
Michiel Broek 2003-05-24 16:03:39 +00:00
parent cb42942cab
commit e50985d01d
2 changed files with 18 additions and 12 deletions

View File

@ -29,6 +29,9 @@ v0.37.4 10-May-2003
mbfido:
Stone age packet support, see common.a.
Due to a bug in King-FIX v.1.26.Universal mbfido did crash.
Now it will log this and continue processing ticfiles with the
risk of sending files back to the owner of that faulty program.
v0.37.3 09-Apr-2003 - 10-May-2003

View File

@ -168,8 +168,6 @@ int LoadTic(char *inb, char *tfn)
char *Temp, *Temp2, *Buf, *Log = NULL, RealName[256];
int i, j, rc, bufsize, DescCnt = FALSE;
fa_list *sbl = NULL;
// DIR *dp;
// struct dirent *de;
if (CFG.slow_util && do_quiet)
usleep(1);
@ -273,6 +271,7 @@ int LoadTic(char *inb, char *tfn)
} else if (strncasecmp(Temp, "path ", 5) == 0) {
strncpy(TIC.TicIn.Path[TIC.TicIn.TotPath], Temp+5, 80);
if (strchr(TIC.TicIn.Path[TIC.TicIn.TotPath], ':') && strchr(Temp+5, '/')) {
TIC.TicIn.TotPath++;
TIC.Aka.zone = atoi(strtok(Temp+5, ":"));
TIC.Aka.net = atoi(strtok(NULL, "/"));
@ -283,6 +282,10 @@ int LoadTic(char *inb, char *tfn)
TIC.TicIn.PathError = TRUE;
Syslog('+', "Aka %d: %s in path", i + 1, aka2str(CFG.aka[i]));
}
} else {
WriteError("No AKA in path: \"%s\"", printable(Temp, 0));
WriteError("Report this to author of that program");
}
} else if (strncasecmp(Temp, "seenby ", 7) == 0) {
fill_list(&sbl, Temp+7, NULL);