Commit da5e6982 authored by Per Cederqvist's avatar Per Cederqvist

Release 0.98.3

parent 33d0b237
......@@ -308,7 +308,7 @@ RETRY:
scb = isl->scb;
if (event->msg = isc_popqueue(scb->rd_msg_q))
if ((event->msg = isc_popqueue(scb->rd_msg_q)))
{
event->session = scb;
event->event = ISC_EVENT_MESSAGE;
......
......@@ -9,6 +9,7 @@
** 920129 pen added support for "lazy" connect()
** 920209 pen reworked some of the code
** 920209 pen TCP and UDP specific code removed.
** 930117 pen Two memory leak bugs fixed (found by Ceder)
*/
#include <sys/types.h>
......@@ -185,6 +186,8 @@ isc_remove(IscMaster *mcb,
isl->next = NULL;
}
isc_free(isl);
return --scb->nlinks;
}
......@@ -222,7 +225,13 @@ isc_create(IscSessionConfig *cfg, IscHandler *fun)
scb->wr_msg_q = NULL;
scb->handlers = NULL;
memset(&scb->fun, 0, sizeof(scb->fun));
scb->fun.read = NULL;
scb->fun.write = NULL;
scb->fun.close = NULL;
scb->fun.poll = NULL;
scb->fun.accept = NULL;
scb->fun.destroy = NULL;
scb->fun.parse = NULL;
scb->cfg = cfg;
......@@ -275,6 +284,9 @@ isc_destroy(IscMaster *mcb,
if (scb->fun.destroy)
ISC_SCALLFUN1(scb, destroy, scb);
while (isc_pophandler(scb))
;
if (scb->fd != -1)
{
close(scb->fd);
......
......@@ -94,6 +94,7 @@ isc_tcp_destroy_fn(IscHandlerList *hl,
isc_freeaddress(scb->info.tcp.laddr);
scb->info.tcp.laddr = NULL;
}
}
......@@ -236,7 +237,7 @@ isc_bindtcp(IscSession *scb,
/*
** Connect a TCP session to a remove service.
** Connect a TCP session to a remote service.
*/
int
isc_connecttcp(IscSession *scb,
......@@ -255,7 +256,6 @@ isc_connecttcp(IscSession *scb,
address = "localhost";
ia = isc_mktcpaddress(address, service);
if (!ia)
return -1;
......
......@@ -307,7 +307,7 @@ rflag: switch (*++fmt)
*/
char *p;
if (p = memchr(t, 0, prec)) {
if ((p = memchr(t, 0, prec))) {
size = p - t;
if (size > prec)
size = prec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment