diff options
author | Volker Lendecke <vl@samba.org> | 2019-09-18 09:19:37 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-18 20:10:24 +0000 |
commit | 3084928383cdeafc53b2154f458464d9174faff2 (patch) | |
tree | d37b3b05dd801686a2dfafb35c3816095942914a /source3/winbindd | |
parent | 3263dd32fedf9e6c104a0c03f035b585c568a8d1 (diff) | |
download | samba-3084928383cdeafc53b2154f458464d9174faff2.tar.gz |
messaging4: Pass fds to messaging handlers
Boiler-plate replacement moving the (num_fds!=0) check down
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index cc4c3f7391a..ebe283ec712 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -849,10 +849,17 @@ static void wb_imsg_new_trusted_domain(struct imessaging_context *msg, void *private_data, uint32_t msg_type, struct server_id server_id, + size_t num_fds, + int *fds, DATA_BLOB *data) { bool ok; + if (num_fds != 0) { + DBG_WARNING("Received %zu fds, ignoring message\n", num_fds); + return; + } + DBG_NOTICE("Rescanning trusted domains\n"); ok = add_trusted_domains_dc(); |