The return value is enough now to know if the allocation succeeded or
failed.
This cleanup was already pushed by Willy (
f499f50) but a revert crushed
it. It may be backported to the 2.4 because the original patch was done on
this version.
if (!s->txn || (s->txn->req.msg_state != HTTP_MSG_DONE))
si->flags &= ~SI_FL_L7_RETRY;
else {
- if (b_is_null(&si->l7_buffer))
- b_alloc(&si->l7_buffer);
- if (b_is_null(&si->l7_buffer))
+ if (b_alloc(&si->l7_buffer) == NULL)
si->flags &= ~SI_FL_L7_RETRY;
else {
memcpy(b_orig(&si->l7_buffer),