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:
f2e278c
)
Abandon the socket properly when freeing a DC hub.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 20 Apr 2009 02:02:26 +0000
(
04:02
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 20 Apr 2009 02:02:26 +0000
(
04:02
+0200)
daemon/fnet-dc.c
patch
|
blob
|
blame
|
history
diff --git
a/daemon/fnet-dc.c
b/daemon/fnet-dc.c
index
36ddb14
..
a79a681
100644
(file)
--- a/
daemon/fnet-dc.c
+++ b/
daemon/fnet-dc.c
@@
-3218,7
+3218,7
@@
static void hubdestroy(struct fnetnode *fn)
struct qcommand *qcmd;
hub = (struct dchub *)fn->data;
struct qcommand *qcmd;
hub = (struct dchub *)fn->data;
-
pu
tsock(hub->sk);
+
qui
tsock(hub->sk);
while((qcmd = ulqcmd(&hub->queue)) != NULL)
freeqcmd(qcmd);
if(hub->supports != NULL)
while((qcmd = ulqcmd(&hub->queue)) != NULL)
freeqcmd(qcmd);
if(hub->supports != NULL)