From 89aeabff5bc99dc96cd1dcb65d7c06a60ea7ac35 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 28 Apr 2023 08:49:32 +0200 Subject: [PATCH] BUG/MINOR: resolvers: Use sc_need_room() to wait more room when dumping stats It was a cut/paste typo during stream-interface to conn-stream refactoring. sc_have_room() was used instead of sc_need_room(). This patch must be backported as far as 2.6. --- src/resolvers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers.c b/src/resolvers.c index 4b2e03e67..ac0b0158f 100644 --- a/src/resolvers.c +++ b/src/resolvers.c @@ -2693,7 +2693,7 @@ static int stats_dump_resolv_to_buffer(struct stconn *sc, return 1; full: - sc_have_room(sc); + sc_need_room(sc); return 0; }