ctdbd_conn: don't use uninitialized memory in ctdbd_register_ips()
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Nov 2023 12:29:18 +0000 (13:29 +0100)
committerJule Anger <janger@samba.org>
Sat, 16 Dec 2023 15:07:14 +0000 (15:07 +0000)
commite09f92422ebff3454332ebbb28d578d8103e7203
tree7cb2b76816b1c7e1a87b10b4b6c692db68d19a8b
parent118d6c81ec9fd19a98d5f674ccff2a57aed81881
ctdbd_conn: don't use uninitialized memory in ctdbd_register_ips()

We dump the structure into the socket, so we need to zero the content
including possible padding.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 240139370aa19f53dd3de0ff468afd994d3bd973)
source3/lib/ctdbd_conn.c