MINOR: config: Don't dump keywords if argument is NULL
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 May 2020 10:14:18 +0000 (12:14 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 May 2020 16:30:06 +0000 (18:30 +0200)
commit784063eeb2160d089a321544a6b0e8637d487308
tree4834ae2c0b80e2a8bfff8ed7d26479bd25ef42b1
parent2a37cdbe6b2cf7e9fa8654ee017af12ceb6015c2
MINOR: config: Don't dump keywords if argument is NULL

Helper functions are used to dump bind, server or filter keywords. These
functions are used to report errors during the configuration parsing. To have a
coherent API, these functions are now prepared to handle a null pointer as
argument. If so, no action is performed and functions immediately return.

This patch should fix the issue #631. It is not a bug. There is no reason to
backport it.
src/filters.c
src/listener.c
src/server.c