Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8c739
)
Check against illegal transfer state.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 26 Mar 2014 01:05:08 +0000
(
02:05
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 26 Mar 2014 01:05:08 +0000
(
02:05
+0100)
daemon/fnet-dc.c
patch
|
blob
|
blame
|
history
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;