summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-hreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 9c630912..dc02e6fe 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -330,6 +330,8 @@ void afb_hreq_addref(struct afb_hreq *hreq)
void afb_hreq_unref(struct afb_hreq *hreq)
{
+ if (hreq->replied)
+ hreq->xreq.replied = 1;
afb_xreq_unref(&hreq->xreq);
}