}
res = mux_get_buf(qcs);
- if (!res) {
+ if (b_is_null(res)) {
TRACE_ERROR("cannot allocate Tx buffer", H3_EV_TX_SETTINGS, qcs->qcc->conn, qcs);
goto err;
}
list[hdr].n = ist("");
res = mux_get_buf(qcs);
- if (!res) {
+ if (b_is_null(res)) {
TRACE_ERROR("cannot allocate Tx buffer", H3_EV_TX_HDR, qcs->qcc->conn, qcs);
h3c->err = H3_INTERNAL_ERROR;
goto err;
list[hdr].n = ist("");
res = mux_get_buf(qcs);
- if (!res) {
+ if (b_is_null(res)) {
TRACE_ERROR("cannot allocate Tx buffer", H3_EV_TX_HDR, qcs->qcc->conn, qcs);
h3c->err = H3_INTERNAL_ERROR;
goto err;
goto end;
res = mux_get_buf(qcs);
- if (!res) {
+ if (b_is_null(res)) {
TRACE_ERROR("cannot allocate Tx buffer", H3_EV_TX_DATA, qcs->qcc->conn, qcs);
h3c->err = H3_INTERNAL_ERROR;
goto err;
h3_debug_printf(stderr, "%s\n", __func__);
res = mux_get_buf(qcs);
- if (!res) {
+ if (b_is_null(res)) {
qcs->sd->iobuf.flags |= IOBUF_FL_NO_FF;
goto end;
}
b_quic_enc_int(&pos, h3c->id_goaway, 0);
res = mux_get_buf(qcs);
- if (!res || b_room(res) < b_data(&pos)) {
+ if (b_is_null(res) || b_room(res) < b_data(&pos)) {
/* Do not try forcefully to emit GOAWAY if no space left. */
TRACE_ERROR("cannot send GOAWAY", H3_EV_H3C_END, h3c->qcc->conn, qcs);
goto err;