From efda40aefcab90c030eae3e8b5bce091e4ad875b Mon Sep 17 00:00:00 2001 From: fredrik Date: Sun, 15 Apr 2007 03:21:00 +0000 Subject: [PATCH] Should clear callbacks when setting fn->sk->data to NULL. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@936 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/fnet-dc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/fnet-dc.c b/daemon/fnet-dc.c index c88deef..f7d976e 100644 --- a/daemon/fnet-dc.c +++ b/daemon/fnet-dc.c @@ -3093,6 +3093,8 @@ static void hubdestroy(struct fnetnode *fn) if((fn->sk != NULL) && (fn->sk->data == fn)) { fn->sk->data = NULL; + fn->sk->readcb = NULL; + fn->sk->errcb = NULL; putfnetnode(fn); } if(hub == NULL) -- 2.11.0