ctdb-common: Fix crash in logging initialisation
authorMartin Schwenke <martin@meltin.net>
Thu, 1 Jun 2017 04:37:40 +0000 (14:37 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 1 Jun 2017 13:26:19 +0000 (15:26 +0200)
commitc47e6b140d0c7cc15a93782957090625a832ba59
tree8f9fee2832dfb119d245e16e06dede0ea5efbada
parent822f8cdfeaa632444c84a845bcd5916806e70630
ctdb-common: Fix crash in logging initialisation

Setting CTDB_LOGGING to syslog:nonblocking or syslog:udp will cause
ctdbd to crash at startup due to NULL pointer dereference.
Refactoring in commit c9124a001f5abf7bb577a8f5341da4cc7411ed22
introduced this regression.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12814

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Jun  1 15:26:19 CEST 2017 on sn-devel-144
ctdb/common/logging.c