Commit 0ccc52f0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_destroy): Don't chanse a NULL pointer. This could be triggered

	if the port was already bound.
parent 0f62172d
......@@ -435,7 +435,7 @@ isc_destroy(struct isc_mcb *mcb,
if (sci->wr_msg_q)
{
size = isc_killqueue(sci->wr_msg_q);
if (mcb->write_change_cb)
if (mcb != NULL && mcb->write_change_cb)
mcb->write_change_cb(-size);
}
......
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