1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
David Disseldorp 22edd69503 smbd: improve reinit_after_fork error handling
reinit_after_fork() may panic or return an error on failure. When smbd
is started in interactive mode, it ignores the reinit_after_fork()
return status and unconditionally proceeds to smbd_process().

Similarly, if messaging_reinit() fails within reinit_after_fork() then
it will subsequently call ctdb_async_ctx_reinit() if clustering is
enabled.

There's no reason why these errors shouldn't be handled immediately, so
add appropriate error handling.

Found by code inspection; not seen in the wild.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Wed Sep  4 09:53:01 UTC 2024 on atb-devel-224
2024-09-04 09:53:01 +00:00
..
2023-07-19 09:58:37 +00:00
2024-05-15 16:51:39 +00:00
2024-04-17 07:57:36 +00:00
2023-07-19 09:58:37 +00:00
2023-07-19 09:58:37 +00:00
2023-11-15 05:10:35 +00:00
2023-11-01 18:55:32 +00:00
2023-07-19 09:58:37 +00:00
2023-07-19 09:58:37 +00:00
2024-02-08 02:48:44 +00:00
2020-11-04 18:55:39 +00:00
2024-06-24 16:21:32 +00:00
2023-11-01 18:55:32 +00:00
2023-11-20 15:37:33 +00:00
2023-07-19 09:58:37 +00:00
2024-07-08 07:36:32 +00:00
2022-04-07 17:37:29 +00:00
2024-06-28 13:26:24 +00:00
2023-07-19 09:58:37 +00:00
2023-07-19 09:58:37 +00:00
2024-04-30 22:44:32 +00:00
2024-08-27 07:19:32 +00:00
2024-04-17 07:57:36 +00:00
2024-03-22 06:07:42 +00:00
2023-07-19 09:58:37 +00:00
2023-10-25 22:23:37 +00:00
2024-06-04 07:11:35 +00:00
2022-08-04 20:44:32 +00:00
2024-08-06 16:29:33 +00:00