diff options
author | Christof Schmitt <cs@samba.org> | 2023-05-02 12:17:56 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2023-05-03 08:04:09 +0000 |
commit | 4dccf5afa444edecd2893dac7558bac9212526bf (patch) | |
tree | 942fb014e01d056331f1ab1d60def7c757e7fc1e /ctdb | |
parent | de1fdf1e0207ff1c2e0ef6baed667cbfc001d7fb (diff) | |
download | samba-4dccf5afa444edecd2893dac7558bac9212526bf.tar.gz |
ctdb-recovery: Use correct struct ban_node_state type for state
If this codepath is hit, ctdb aborts with:
ctdb/server/ctdb_recovery_helper.c:2687: Type mismatch: name[struct ban_node_state] expected[struct node_ban_state]")
at ../../lib/talloc/talloc.c:505
Fix this by using the correct type.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed May 3 08:04:09 UTC 2023 on atb-devel-224
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/server/ctdb_recovery_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_recovery_helper.c b/ctdb/server/ctdb_recovery_helper.c index f3576474144..4df48417c7a 100644 --- a/ctdb/server/ctdb_recovery_helper.c +++ b/ctdb/server/ctdb_recovery_helper.c @@ -2327,8 +2327,8 @@ static void ban_node_done(struct tevent_req *subreq) { struct tevent_req *req = tevent_req_callback_data( subreq, struct tevent_req); - struct node_ban_state *state = tevent_req_data( - req, struct node_ban_state); + struct ban_node_state *state = tevent_req_data( + req, struct ban_node_state); struct ctdb_reply_control *reply; int ret; bool status; |