ctdb:common: Do not print NULL if we don't get a sockpath
commit925871f58086ddcc68b386eacdfd99d8b42e9c53
authorAndreas Schneider <asn@samba.org>
Wed, 8 May 2019 15:03:54 +0000 (8 17:03 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 17 May 2019 07:18:31 +0000 (17 07:18 +0000)
tree8f0487856692f9e8821eff039627a2affd0e5ef9
parentf00cb3c18241277574e10c49e4e707076c3e2af5
ctdb:common: Do not print NULL if we don't get a sockpath

sock_socket_start_recv() might not fill sockpath if we return early.

Found by GCC 9.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 830cb7e67568de5f3ce359cb6af3be8ab545c824)
ctdb/common/sock_daemon.c