]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: don't randomly crash on out-of-memory
authorWilly Tarreau <w@1wt.eu>
Sat, 1 Oct 2016 07:20:32 +0000 (09:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Oct 2016 07:23:04 +0000 (09:23 +0200)
commitc3d8cd47e05c83cd5f515e52027110aaaa63ff0d
tree34a2746b6521dbdeaa8f3f61b886fcb717f476ab
parent1f6367fa0826b30da6597da37479d9caa5d15e97
BUG/MEDIUM: dns: don't randomly crash on out-of-memory

dns_init_resolvers() tries to emit the current resolver's name in the
error message in case of out-of-memory condition. But it must not do
it when initializing the trash before even having such a resolver
otherwise the user is certain to get a dirty crash instead of the
error message. No backport is needed.
src/dns.c