(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:
@@ -680,13 +680,14 @@ doit(int sock, int 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,
|
||||
nsockets, sockets, tcp_flag);
|
||||
else
|
||||
} else {
|
||||
ret = doit_active (&context, sock, flags, tcp_flag);
|
||||
context_destroy (&context);
|
||||
cleanup(nsockets, sockets);
|
||||
}
|
||||
context_destroy (&context);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user