Commit 296a3199 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_read_data): Handle struct isc_scb_internal.

parent dc9291c3
......@@ -72,12 +72,13 @@
enum isc_read_result
isc_read_data(struct isc_scb *scb,
isc_read_data(struct isc_scb *scb_pub,
String *result,
String_size *unused)
{
void *buf;
ssize_t status;
struct isc_scb_internal *scb = (struct isc_scb_internal *)scb_pub;
/* Too many queued blocks? Don't read any more data, until
the client has read the output we have already produced. */
......@@ -91,12 +92,12 @@ isc_read_data(struct isc_scb *scb,
*unused = 0;
}
buf = s_reserve(result, scb->master->scfg->max.msgsize);
buf = s_reserve(result, scb->pub.master->scfg->max.msgsize);
if (buf == NULL)
return ISC_READ_NOMEM;
do {
status = read(scb->fd, buf, scb->master->scfg->max.msgsize);
status = read(scb->pub.fd, buf, scb->pub.master->scfg->max.msgsize);
} while (status < 0 && errno == EINTR);
if (status == 0)
......
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