(doit): only cleaup for active sockets, passive does it own cleaning up

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15601 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-09 02:21:25 +00:00
parent 5e969ca2b3
commit 106c5e808e

View File

@@ -680,13 +680,14 @@ doit(int sock, int tcp_flag)
flags = recv_conn (sock, &context, &dispnr, &nsockets, &sockets, tcp_flag); flags = recv_conn (sock, &context, &dispnr, &nsockets, &sockets, tcp_flag);
if (flags & PASSIVE) if (flags & PASSIVE) {
ret = doit_passive (&context, sock, flags, dispnr, ret = doit_passive (&context, sock, flags, dispnr,
nsockets, sockets, tcp_flag); nsockets, sockets, tcp_flag);
else } else {
ret = doit_active (&context, sock, flags, tcp_flag); ret = doit_active (&context, sock, flags, tcp_flag);
cleanup(nsockets, sockets);
}
context_destroy (&context); context_destroy (&context);
cleanup(nsockets, sockets);
return ret; return ret;
} }