Commit f3e10e76 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_create): Removed the code that initialized scb->fun.

(isc_destroy): Use scb->handlers->current instead of scb->fun.
parent cbc7127d
......@@ -226,14 +226,6 @@ isc_create(IscSessionConfig *cfg, IscHandler *fun)
scb->wr_msg_q = NULL;
scb->handlers = NULL;
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;
scb->stats.rx.bytes = 0;
......@@ -282,7 +274,7 @@ isc_destroy(IscMaster *mcb,
*/
if (scb->nlinks <= 0)
{
if (scb->fun.destroy)
if (scb->handlers->current.destroy)
ISC_SCALLFUN1(scb, destroy, scb);
while (isc_pophandler(scb))
......
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