From: Fredrik Tolf Date: Thu, 6 Nov 2008 02:49:55 +0000 (+0100) Subject: Fixed bug occurring when netcsconn happens. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=bceefd0d7bcbecd2ab8865ba4743b8ce4b48178f;p=doldaconnect.git Fixed bug occurring when netcsconn happens. --- diff --git a/daemon/net.c b/daemon/net.c index 86bc552..e1eb5dc 100644 --- a/daemon/net.c +++ b/daemon/net.c @@ -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;