Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check against illegal transfer state.
[doldaconnect.git]
/
daemon
/
fnet-dc.c
diff --git
a/daemon/fnet-dc.c
b/daemon/fnet-dc.c
index
98742c6
..
30b0a24
100644
(file)
--- 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;