]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: applet: Improve applet API to take care of inbuf/outbuf alloc failures
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Jul 2025 13:08:55 +0000 (15:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jul 2025 10:13:41 +0000 (12:13 +0200)
commit1f9a1cbefc164391642d8b42e597c14c39055c1e
tree98b1bf1537871ff834b66b93beed83af867a2717
parent44aae94ab9dbc4ae86dc0284f00732b5760aaee1
MINOR: applet: Improve applet API to take care of inbuf/outbuf alloc failures

applet_get_inbuf() and applet_get_outbuf() functions were not testing if the
buffers were available. So, the caller had to check them before calling one
of these functions. It is not really handy. So now, these functions take
care to have a fully usable buffer before returning. Otherwise NULL is
returned.
include/haproxy/applet.h