From: fredrik Date: Mon, 14 Aug 2006 15:46:30 +0000 (+0000) Subject: Combine logic. X-Git-Tag: 0.2~20 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=9d131372dcfd547dee727bb3475675daf5467024 Combine logic. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@687 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index a20aa05..360fe1f 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -3073,13 +3073,10 @@ static void hubdestroy(struct fnetnode *fn) struct qcommand *qcmd; hub = (struct dchub *)fn->data; - if(fn->sk != NULL) + if((fn->sk != NULL) && (fn->sk->data == fn)) { - if(fn->sk->data == fn) - { - fn->sk->data = NULL; - putfnetnode(fn); - } + fn->sk->data = NULL; + putfnetnode(fn); } if(hub == NULL) return;