From 0e3c2c8bc66d747e0eb8e7c1736268f7fd0b0d7a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 13 Feb 2018 14:05:15 +0100 Subject: winbind: Don't explicitly send "server_id" for ONLINESTATUS Messaging already provides the sender id Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/utils/smbcontrol.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source3/utils/smbcontrol.c') diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 0f6dacce20d..4b47d3bed57 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -1160,10 +1160,6 @@ static bool do_winbind_onlinestatus(struct tevent_context *ev_ctx, const struct server_id pid, const int argc, const char **argv) { - struct server_id myid; - - myid = messaging_server_id(msg_ctx); - if (argc != 1) { fprintf(stderr, "Usage: smbcontrol winbindd onlinestatus\n"); return False; @@ -1172,9 +1168,9 @@ static bool do_winbind_onlinestatus(struct tevent_context *ev_ctx, messaging_register(msg_ctx, NULL, MSG_WINBIND_ONLINESTATUS, print_pid_string_cb); - if (!send_message(msg_ctx, pid, MSG_WINBIND_ONLINESTATUS, &myid, - sizeof(myid))) + if (!send_message(msg_ctx, pid, MSG_WINBIND_ONLINESTATUS, NULL, 0)) { return False; + } wait_replies(ev_ctx, msg_ctx, procid_to_pid(&pid) == 0); -- cgit v1.2.1