Commit 721a1678 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_read_data): Don't crash if wr_msg_q is NULL.

parent b1f1f5f7
......@@ -82,6 +82,11 @@ isc_read_data(struct isc_scb *scb_pub,
ssize_t status;
struct isc_scb_internal *scb = (struct isc_scb_internal *)scb_pub;
/* No output queue? This could only happen if trying to read from
a connection that has returned an error, but fail safe. */
if (scb->wr_msg_q == NULL)
return ISC_READ_WOULDBLOCK;
/* Too many queued blocks? Don't read any more data, until
the client has read the output we have already produced. */
if (isc_sizequeue(scb->wr_msg_q) >= scb->cfg->max.queuedsize)
......
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