messaging4: Pass fds to messaging handlers
[abartlet/samba-autobuild/.git] / source3 / winbindd / winbindd_util.c
index cc4c3f7391ae62f30ad435e4f81d417eccbf6b5c..ebe283ec71235c0c080957b6b77ac97083301dae 100644 (file)
@@ -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();