Add small sanity assignment.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 14 Aug 2006 15:46:02 +0000 (15:46 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 14 Aug 2006 15:46:02 +0000 (15:46 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@686 959494ce-11ee-0310-bf91-de5d638817bd

daemon/filenet.c

index dd14f7e..4198344 100644 (file)
@@ -68,7 +68,10 @@ void killfnetnode(struct fnetnode *fn)
     {
        fn->sk->close = 1;
        if(fn->sk->data == fn)
+       {
+           fn->sk->data = NULL;
            putfnetnode(fn);
+       }
        putsock(fn->sk);
        fn->sk = NULL;
     }