BUILD: peers: check allocation error during peers_init_sync()
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 09:18:03 +0000 (11:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 11:24:43 +0000 (13:24 +0200)
commitd944344f01d9ea914d94c45f6ac7c224c6143fc9
treebcd67d4b08767b2558160b3e5ba9fadb17eaacf4
parent848522f05df9e60eea9274e11f1e9fcd19594a5c
BUILD: peers: check allocation error during peers_init_sync()

peers_init_sync() doesn't check task_new()'s return value and doesn't
return any result to indicate success or failure. Let's make it return
an int and check it from the caller.

This can be backported as far as 1.6.
include/proto/peers.h
src/cfgparse.c
src/peers.c