Fixed bug occurring when netcsconn happens.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 6 Nov 2008 02:49:55 +0000 (03:49 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 6 Nov 2008 02:49:55 +0000 (03:49 +0100)
daemon/net.c

index 86bc552..e1eb5dc 100644 (file)
@@ -1020,7 +1020,7 @@ struct socket *netcsconn(struct sockaddr *addr, socklen_t addrlen, void (*func)(
            sksetstate(sk, SOCK_SYN);
            return(sk->back);
        }
-       putsock(sk);
+       putsock(sk->back);
        return(NULL);
     }
     errno = EOPNOTSUPP;