git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1931
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2010-01-03 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/s_bsd.c (client_sock_callback): Invalidate cli_fd() when we
+ receive an EBADF error.
+
2010-01-03 Michael Poole <mdpoole@troilus.org>
* ircd/engine_select.c (engine_loop): Remove a bogus assert() that
*/
struct SLink* make_link(void)
{
+#if 1
+ struct SLink* lp = (struct SLink*) MyMalloc(sizeof(struct SLink));
+#else
struct SLink* lp = slinkFreeList;
if (lp)
slinkFreeList = lp->next;
lp = (struct SLink*) MyMalloc(sizeof(struct SLink));
links.alloc++;
}
+#endif
assert(0 != lp);
links.inuse++;
memset(lp, 0, sizeof(*lp));
void free_link(struct SLink* lp)
{
if (lp) {
+#if 1
+ MyFree(lp);
+#else
lp->next = slinkFreeList;
slinkFreeList = lp;
+#endif
links.inuse--;
}
}