]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sink: Return an allocation failure in __sink_new if strdup() fails
authorTim Duesterhus <tim@bastelstu.be>
Sun, 3 Jan 2021 18:54:11 +0000 (19:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2021 19:35:45 +0000 (20:35 +0100)
commita7ebffef660c2c83590798e0f1acceb9001ff92c
tree47c12ac1e6c33d1f1416bd80079282d61f8f2270
parent5e8c35da1b93b64ec4892192aec3d61d73b3bbce
BUG/MINOR: sink: Return an allocation failure in __sink_new if strdup() fails

This patch fixes GitHub issue #1023.

The function was introduced in commit 99c453d ("MEDIUM: ring: new
section ring to declare custom ring buffers."), which first appeared
in 2.2-dev9. The fix should be backported to 2.2+.
src/sink.c