if (conf->buffer_tree_given) {
char *buf;
+ if (btr_no_children(rn->btrn)) {
+ t->error = -E_HTTP_RECV_NO_CHILD;
+ goto err;
+ }
if (btr_bytes_pending(rn->btrn) > HTTP_RECV_MAX_PENDING) {
t->error = -E_HTTP_RECV_OVERRUN;
goto err;
phd->fd = fd;
phd->status = HTTP_CONNECTED;
if (conf->buffer_tree_given)
- rn->btrn = btr_new_node("receiver", NULL);
+ rn->btrn = btr_new_node("receiver", NULL, NULL, NULL);
return 1;
}