CLEANUP: backend: make alloc_{bind,dst}_address() idempotent
authorWilly Tarreau <w@1wt.eu>
Mon, 2 May 2022 14:20:36 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 2 May 2022 14:20:36 +0000 (16:20 +0200)
commitb3f0d42a1d3dbebca411ef4f789eb1a4443ff42f
treee53525beb2078a100294cbc19e8df78bf8518802
parent291ee25696e950fec05d43abcf928e11f0f99fdb
CLEANUP: backend: make alloc_{bind,dst}_address() idempotent

These functions dynamically allocate a source or destination address but
start by clearing the previous one. There's a non-null risk of leaking
addresses there in case of misuse. Better have them do nothing if the
address was already allocated.
src/backend.c