git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@702
959494ce-11ee-0310-bf91-
de5d638817bd
static void filterexit(pid_t pid, int status, void *data)
{
struct transfer *transfer;
+ struct fnet *fnet;
+ wchar_t *peerid;
for(transfer = transfers; transfer != NULL; transfer = transfer->next)
{
{
transfer->filter = -1;
killfilter(transfer);
+ fnet = transfer->fnet;
+ peerid = swcsdup(transfer->peerid);
if(WEXITSTATUS(status))
- {
resettransfer(transfer);
- } else {
+ else
freetransfer(transfer);
- }
- trytransferbypeer(transfer->fnet, transfer->peerid);
+ trytransferbypeer(fnet, peerid);
+ free(peerid);
break;
}
}