[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kxd bug?
Got patch from Love.
Harald.
--- appl/kx/kxd.c 9 Jul 2005 02:19:10 -0000 1.77
+++ appl/kx/kxd.c 9 Jul 2005 02:21:25 -0000 1.78
@@ -680,13 +680,14 @@
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);
+ cleanup(nsockets, sockets);
+ }
context_destroy (&context);
- cleanup(nsockets, sockets);
return ret;
}