Should clear callbacks when setting fn->sk->data to NULL.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 15 Apr 2007 03:21:00 +0000 (03:21 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 15 Apr 2007 03:21:00 +0000 (03:21 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@936 959494ce-11ee-0310-bf91-de5d638817bd

daemon/fnet-dc.c

index c88deef..f7d976e 100644 (file)
@@ -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)