BUG/MINOR: resolvers: handle a possible strdup() failure
authorIlia Shipitsin <chipitsine@gmail.com>
Tue, 3 Dec 2024 18:54:46 +0000 (19:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2024 10:09:53 +0000 (11:09 +0100)
commitc014bf799e0d60b4c47b99cdf0435c871946823b
tree5c8c9d2352b6ec4c750137c62a880ecdcf901dd7
parentf13318e2d28bcbd0929ab9e494cc52803c5db7d1
BUG/MINOR: resolvers: handle a possible strdup() failure

This defect was found by the coccinelle script "unchecked-strdup.cocci".
It can be backported to all supported branches.

(cherry picked from commit 193c94a53988f77b827e5f8bb5121d3dc3b2b5ed)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/resolvers.c