From: Fredrik Tolf Date: Wed, 26 Mar 2014 01:05:08 +0000 (+0100) Subject: Check against illegal transfer state. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=6d7174d0ec624f7ec75e542c62dd980a555d1259;p=doldaconnect.git Check against illegal transfer state. --- diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index 98742c6..30b0a24 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -1618,7 +1618,7 @@ static void cmd_direction(struct socket *sk, struct dcpeer *peer, char *cmd, cha if(peer->direction == TRNSD_DOWN) requestfile(peer); } else { - if(peer->wcsname == NULL) + if((peer->wcsname == NULL) || (peer->transfer != NULL)) { peer->close = 1; return;