X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ffnet-dc.c;h=360fe1f25014e3b376e8f57eaa0ed23443f13914;hb=0a1bc5b19fe40d88790d02f236ea4c9637024969;hp=a20aa0567b0e3ef1ce9733d2dd70604332345745;hpb=1d85f24bb4bdc0f15f9560bc867befeff8eabc36;p=doldaconnect.git 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;