Small fixes
This commit is contained in:
parent
d04e45c286
commit
57a3751b32
@ -234,7 +234,7 @@ node *getnlent(faddr *addr)
|
|||||||
/*
|
/*
|
||||||
* First, lookup node in index. NOTE -- NOT 5D YET
|
* First, lookup node in index. NOTE -- NOT 5D YET
|
||||||
*/
|
*/
|
||||||
path = calloc(128, sizeof(char));
|
path = calloc(PATH_MAX, sizeof(char));
|
||||||
sprintf(path, "%s/%s", CFG.nodelists, "node.index");
|
sprintf(path, "%s/%s", CFG.nodelists, "node.index");
|
||||||
if ((fp = fopen(path, "r")) == NULL) {
|
if ((fp = fopen(path, "r")) == NULL) {
|
||||||
WriteError("$Can't open %s", path);
|
WriteError("$Can't open %s", path);
|
||||||
|
@ -316,6 +316,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
|
|||||||
SearchNode(Node);
|
SearchNode(Node);
|
||||||
free(ticfile);
|
free(ticfile);
|
||||||
free(fwdfile);
|
free(fwdfile);
|
||||||
|
tidy_faddr(route);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ int VirScan(void)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(temp);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user