]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: dns: fix misleading error messages in dns_stream_init()
authorWilly Tarreau <w@1wt.eu>
Thu, 14 May 2026 20:59:53 +0000 (20:59 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 15:39:25 +0000 (17:39 +0200)
commit2a43a1306b97bdb46dd26ac57e90d68f61de2956
tree4e36bd8e7aa7fcc17f82d6a94f50d84d8bfd9258
parentb6bd6f5b9a0a6778f3c7f3ec4b04b57ed8c587e8
CLEANUP: dns: fix misleading error messages in dns_stream_init()

All task allocation errors report "memory allocation error initializing
the ring" when the actual failure was task_new_anywhere() returning NULL.
This clearly is a copy-paste. Let's fix the error messages to help when
debugging. Since it's only about allocation failures during init, there
is probably no point in backporting this.
src/dns.c