From: Fredrik Tolf Date: Mon, 20 Apr 2009 02:02:26 +0000 (+0200) Subject: Abandon the socket properly when freeing a DC hub. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;ds=inline;h=7665d29ddb2ab55ab455a4cfcd840ea38af06c04;p=doldaconnect.git Abandon the socket properly when freeing a DC hub. --- diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index 36ddb14..a79a681 100644 --- 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; - putsock(hub->sk); + quitsock(hub->sk); while((qcmd = ulqcmd(&hub->queue)) != NULL) freeqcmd(qcmd); if(hub->supports != NULL)